Initial commit: NextGen PPR System
- FastAPI backend with JWT authentication - MySQL database with full schema - Docker Compose orchestration - CSV data import for 43,208 airports and 519,999 aircraft - Complete PPR management API - Modernized replacement for PHP-based system
This commit is contained in:
18
backend/start.sh
Normal file
18
backend/start.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Startup script for the FastAPI backend
|
||||
echo "Starting Airfield PPR API..."
|
||||
|
||||
# Install dependencies if needed
|
||||
if [ ! -d "venv" ]; then
|
||||
echo "Creating virtual environment..."
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
else
|
||||
source venv/bin/activate
|
||||
fi
|
||||
|
||||
# Start the application
|
||||
echo "Starting FastAPI server on port 8000..."
|
||||
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
|
||||
Reference in New Issue
Block a user