Skip to content

er-mal/rilind-ia

Repository files navigation

Welcome to your Expo app 👋

This is an Expo project created with create-expo-app.

Get started

  1. Install dependencies

    npm install
  2. Start the app

    npx expo start

In the output, you'll find options to open the app in a

You can start developing by editing the files inside the app directory. This project uses file-based routing.

Get a fresh project

When you're ready, run:

npm run reset-project

This command will move the starter code to the app-example directory and create a blank app directory where you can start developing.

Learn more

To learn more about developing your project with Expo, look at the following resources:

Deployment (Netlify + PWA)

  1. Push this repo to a Git provider (GitHub, GitLab, etc.)
  2. Connect the repo to a new Netlify site
  3. In Netlify Site settings → Environment variables, add:
    • OPENAI_API_KEY = your OpenAI secret key
  4. Netlify will auto-build using npx expo export -p web and serve the PWA from dist/
  5. The Netlify Function at /.netlify/functions/chat proxies all OpenAI calls server-side

Testing the function (PowerShell)

curl -Method POST "https://rilind-ia.netlify.app/.netlify/functions/chat" -ContentType "application/json" -Body '{"messages":[{"role":"user","content":"test"}]}'

Interpreting results:

  • 200 with JSON → working correctly
  • 404 → functions path/directory is wrong
  • 500 Missing OPENAI_API_KEY → env var not set in Netlify
  • 401 → OpenAI key is invalid or has no billing/quota

Platforms

Platform How
Android APK Build with eas build -p android or npx expo run:android
iPhone PWA Open the Netlify URL in Safari → Share → Add to Home Screen

Join the community

Join our community of developers creating universal apps.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors