Go to file
Leon Morival 156611f587 feat: readme 2026-04-19 16:01:47 +02:00
.idea styles 2026-04-19 12:49:53 +02:00
.vscode Initial commit 2026-04-18 17:14:10 +02:00
app fonts 2026-04-19 15:59:08 +02:00
assets fonts 2026-04-19 15:59:08 +02:00
components fonts 2026-04-19 15:59:08 +02:00
constants fonts 2026-04-19 15:59:08 +02:00
lib fonts 2026-04-19 15:59:08 +02:00
providers fonts 2026-04-19 15:59:08 +02:00
services fonts 2026-04-19 15:59:08 +02:00
types fonts 2026-04-19 15:59:08 +02:00
.env.example fonts 2026-04-19 15:59:08 +02:00
.gitignore firestore 2026-04-19 13:00:08 +02:00
README.md feat: readme 2026-04-19 16:01:47 +02:00
app.json styles 2026-04-19 12:49:53 +02:00
bun.lock fonts 2026-04-19 15:59:08 +02:00
eslint.config.js Initial commit 2026-04-18 17:14:10 +02:00
package.json fonts 2026-04-19 15:59:08 +02:00
tsconfig.json Initial commit 2026-04-18 17:14:10 +02:00

README.md

Expo Starter

Starter Expo avec Firebase Auth et Firestore.

Setup

  1. Installe les dépendances
npm install
  1. Crée ton fichier d'environnement
cp .env.example .env
  1. Remplis ton .env avec les valeurs de ton projet Firebase
EXPO_PUBLIC_FIREBASE_API_KEY=
EXPO_PUBLIC_FIREBASE_AUTH_DOMAIN=
EXPO_PUBLIC_FIREBASE_PROJECT_ID=
EXPO_PUBLIC_FIREBASE_STORAGE_BUCKET=
EXPO_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
EXPO_PUBLIC_FIREBASE_APP_ID=
  1. Dans Firebase Console, active Authentication > Sign-in method > Email/Password

  2. Crée Firestore dans le même projet Firebase

Lancer le projet

npx expo prebuild --clean && npx expo run android

Structure utile

  • app/: écrans Expo Router
  • components/common/: composants partagés
  • constants/: palette, spacing, radius, fonts
  • lib/firebase.ts: initialisation Firebase
  • lib/firestore.ts: refs et converters Firestore
  • providers/AuthProvider.tsx: état d'auth global
  • services/auth.ts: login, register, logout