init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "=== Hermes Live Show ==="
|
||||
|
||||
echo ""
|
||||
echo "[1/3] Installing backend dependencies..."
|
||||
cd backend
|
||||
pip install -r requirements.txt -q
|
||||
cd ..
|
||||
|
||||
echo "[2/3] Installing frontend dependencies..."
|
||||
cd frontend
|
||||
npm install --silent
|
||||
cd ..
|
||||
|
||||
echo "[3/3] Initializing database..."
|
||||
cd backend
|
||||
python -m scripts.init_db
|
||||
cd ..
|
||||
|
||||
echo ""
|
||||
echo "Setup complete! Run ./scripts/start.sh to start the application."
|
||||
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Starting Hermes Live Show..."
|
||||
|
||||
echo "Starting backend server..."
|
||||
cd "$(dirname "$0")/../backend"
|
||||
uvicorn app.main:socket_app --host 0.0.0.0 --port 8000 --reload &
|
||||
BACKEND_PID=$!
|
||||
cd ../..
|
||||
|
||||
echo "Starting frontend dev server..."
|
||||
cd "$(dirname "$0")/../frontend"
|
||||
npm run dev &
|
||||
FRONTEND_PID=$!
|
||||
cd ../..
|
||||
|
||||
echo ""
|
||||
echo "Backend: http://localhost:8000"
|
||||
echo "Frontend: http://localhost:5173"
|
||||
echo "Control: http://localhost:5173/#/control"
|
||||
echo "Live: http://localhost:5173/#/live"
|
||||
echo ""
|
||||
echo "Press Ctrl+C to stop all services."
|
||||
|
||||
trap "kill $BACKEND_PID $FRONTEND_PID 2>/dev/null; exit" SIGINT SIGTERM
|
||||
wait
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
echo "Starting Hermes backend..."
|
||||
cd "$(dirname "$0")/../backend"
|
||||
uvicorn app.main:socket_app --host 0.0.0.0 --port 8000 --reload
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
echo "Starting Hermes frontend..."
|
||||
cd "$(dirname "$0")/../frontend"
|
||||
npm run dev
|
||||
Reference in New Issue
Block a user