-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal-start.sh
More file actions
executable file
Β·36 lines (30 loc) Β· 1.01 KB
/
local-start.sh
File metadata and controls
executable file
Β·36 lines (30 loc) Β· 1.01 KB
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
32
33
34
35
36
#!/bin/bash
# Startup script for RMU Attack API development
echo "π Starting RMU API Attack..."
echo "==============================================="
# Activate virtual environment
if [ -d ".venv" ]; then
echo "π¦ Activating virtual environment..."
source .venv/bin/activate
else
echo "β Virtual environment not found. Run 'python -m venv .venv' first."
exit 1
fi
# Verify dependencies installation
echo "π Verifying dependencies..."
pip list | grep fastapi > /dev/null
if [ $? -ne 0 ]; then
echo "π₯ Installing dependencies..."
pip install -r requirements.txt
fi
echo "β
Dependencies verified"
echo ""
echo "π Starting FastAPI server..."
echo "π Documentation available at: http://localhost:8000/docs"
echo "π Swagger UI at: http://localhost:8000/docs"
echo "π ReDoc at: http://localhost:8000/redoc"
echo ""
echo "To stop the server press Ctrl+C"
echo "==============================================="
# Start the server
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000