React Native (Expo) frontend and Flask backend with SQLite. Auth flow: Login/Register → Home.
- backend/ – Flask API (auth, SQLite)
- frontend/ – React Native (Expo) app
From the repo root (this folder):
-
Start backend (creates venv and runs Flask on http://localhost:5000):
.\start-backend.ps1 -
Start frontend (installs deps and runs Expo):
.\start-frontend.ps1
Use two terminals so both run at once. In Expo, press a for Android or i for iOS simulator, or scan the QR code with Expo Go.
- Port: 5000
- Endpoints:
POST /api/auth/register,POST /api/auth/login,GET /api/auth/me(Bearer token) - DB: SQLite at
backend/instance/social_media.db(created on first run)
Manual run:
cd backend
python -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt
python run.py- Login and Register screens; JWT stored in AsyncStorage.
- After login, app shows Home screen with user info and Sign out.
- API base URL:
http://localhost:5000(iOS simulator); usehttp://10.0.2.2:5000for Android emulator (configured infrontend/src/config/api.js).
Manual run:
cd frontend
npm install
npx expo start- Open app → Login (or Register).
- On success, JWT is saved and app navigates to Home.
- On next launch, token is read and user stays logged in until Sign out.