-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
32 lines (24 loc) · 735 Bytes
/
start.sh
File metadata and controls
32 lines (24 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
echo "===================================="
echo "PythonTaMère - Démarrage de l'application"
echo "===================================="
echo ""
echo "[1/3] Installation des dépendances..."
pip install -r requirements.txt
echo ""
echo "[2/3] Initialisation de la base de données..."
python backend/init_db.py
echo ""
echo "[3/3] Démarrage du serveur..."
echo ""
echo "Backend API: http://localhost:8000"
echo "Frontend: http://localhost:3000"
echo "Documentation API: http://localhost:8000/docs"
echo ""
# Démarrer le frontend en arrière-plan
python -m http.server 3000 --directory frontend &
FRONTEND_PID=$!
# Démarrer le backend
python backend/main.py
# Nettoyer au exit
trap "kill $FRONTEND_PID" EXIT