Skip to content

Latest commit

 

History

History
76 lines (58 loc) · 1.32 KB

File metadata and controls

76 lines (58 loc) · 1.32 KB

🚀 Démarrer DreamQuest

✅ Structure avec src/

frontend/
  src/
    app/          # Pages Next.js
    components/   # Composants React
    lib/          # Utils, API, store

Option 1 : Frontend SEULEMENT (Recommandé pour tester l'UI)

npm run dev:frontend

✅ Ouvre http://localhost:3000

Option 2 : Frontend + Backend complet

1. Installer les dépendances Python (première fois):

cd api
pip install -r requirements.txt
cd ..

2. Démarrer Redis:

# Nouveau terminal
redis-server

3. Lancer frontend + backend:

npm run dev

✅ Frontend: http://localhost:3000 ✅ Backend API: http://localhost:8000

⚡ Commandes rapides

Commande Description
npm run dev:frontend Frontend seul (port 3000)
npm run dev:api Backend seul (port 8000)
npm run dev Frontend + Backend ensemble
npm run lint Lint tout le code
npm run test Lancer tous les tests

🔧 Si tu as des erreurs

"concurrently: command not found"

npm install

"Redis connection failed"

# Installer Redis (macOS)
brew install redis
redis-server

"Module 'fastapi' not found"

cd api
pip install -r requirements.txt

Pour tester l'UI rapidement → npm run dev:frontend