Initial commit
This commit is contained in:
28
setup.sh
Executable file
28
setup.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
echo "── Setting up Django backend ──────────────────────────────────────────────"
|
||||
cd backend
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
|
||||
python manage.py migrate
|
||||
python manage.py setup_oauth
|
||||
|
||||
echo ""
|
||||
echo "── Setting up React frontend ──────────────────────────────────────────────"
|
||||
cd ../frontend
|
||||
npm install
|
||||
|
||||
echo ""
|
||||
echo "── Done! ──────────────────────────────────────────────────────────────────"
|
||||
echo ""
|
||||
echo "Start the backend:"
|
||||
echo " cd backend && source .venv/bin/activate && python manage.py runserver"
|
||||
echo ""
|
||||
echo "Start the frontend (new terminal):"
|
||||
echo " cd frontend && npm run dev"
|
||||
echo ""
|
||||
echo "Open http://localhost:5173"
|
||||
echo "Credentials: admin / admin123"
|
||||
Reference in New Issue
Block a user