Welcome to your Expo app 👋

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

First-time setup (required)

The .env file is not in the repo (gitignored). Create it so the app and server can connect to the database and each other:

  1. Copy the example env file: bash cp .env.example .env
  2. Edit YouIn/.env and set at least:
    • MONGODB_URI – your MongoDB connection string (e.g. MongoDB Atlas or mongodb://localhost:27017/youin)
    • JWT_SECRET – any long random string for auth
    • EXPO_PUBLIC_API_URL – for the app to reach the API. Use http://localhost:3001/api for emulator; for a physical device use your PC’s local IP, e.g. http://192.168.1.100:3001/api (run ipconfig to get your IPv4). Restart Expo after changing this.

The server reads YouIn/.env (and optionally server/.env overrides). Without a valid MONGODB_URI the server will fail to start.

Get started

  1. Install dependencies
   npm install
   cd server && npm install && cd ..
  1. 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:

Join the community

Join our community of developers creating universal apps.

Built With

Share this project:

Updates