Sessions 5-7a: 955 tests, deployment ready
This commit is contained in:
+6
-6
@@ -1,13 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Start both BetonBLK services
|
||||
# Start both VYNDR services
|
||||
# Usage: ./scripts/start.sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "[BetonBLK] Starting services..."
|
||||
echo "[VYNDR] Starting services..."
|
||||
|
||||
# Start Python NBA stats service (port 8000)
|
||||
echo "[BetonBLK] Starting NBA stats service on port 8000..."
|
||||
echo "[VYNDR] Starting NBA stats service on port 8000..."
|
||||
cd nba-service
|
||||
source venv/bin/activate
|
||||
uvicorn app.main:app --host 0.0.0.0 --port 8000 &
|
||||
@@ -15,16 +15,16 @@ NBA_PID=$!
|
||||
cd ..
|
||||
|
||||
# Start Node.js API server (port 3000)
|
||||
echo "[BetonBLK] Starting Node API server on port 3000..."
|
||||
echo "[VYNDR] Starting Node API server on port 3000..."
|
||||
node src/server.js &
|
||||
NODE_PID=$!
|
||||
|
||||
echo "[BetonBLK] Services running:"
|
||||
echo "[VYNDR] Services running:"
|
||||
echo " Node API: http://localhost:3000 (PID: $NODE_PID)"
|
||||
echo " NBA Stats: http://localhost:8000 (PID: $NBA_PID)"
|
||||
echo ""
|
||||
echo "Press Ctrl+C to stop all services."
|
||||
|
||||
trap "kill $NBA_PID $NODE_PID 2>/dev/null; echo '[BetonBLK] Services stopped.'" EXIT
|
||||
trap "kill $NBA_PID $NODE_PID 2>/dev/null; echo '[VYNDR] Services stopped.'" EXIT
|
||||
|
||||
wait
|
||||
|
||||
Reference in New Issue
Block a user