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:
- Copy the example env file:
bash cp .env.example .env - 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/apifor emulator; for a physical device use your PC’s local IP, e.g.http://192.168.1.100:3001/api(runipconfigto get your IPv4). Restart Expo after changing this.
- MONGODB_URI – your MongoDB connection string (e.g. MongoDB Atlas or
The server reads YouIn/.env (and optionally server/.env overrides). Without a valid MONGODB_URI the server will fail to start.
Get started
- Install dependencies
npm install
cd server && npm install && cd ..
- Start the app
npx expo start
In the output, you'll find options to open the app in a
- development build
- Android emulator
- iOS simulator
- Expo Go, a limited sandbox for trying out app development with Expo
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:
- Expo documentation: Learn fundamentals, or go into advanced topics with our guides.
- Learn Expo tutorial: Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
Join the community
Join our community of developers creating universal apps.
- Expo on GitHub: View our open source platform and contribute.
- Discord community: Chat with Expo users and ask questions.
Log in or sign up for Devpost to join the conversation.