- 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
18 lines
447 B
Bash
18 lines
447 B
Bash
#!/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 |