Includes: - Backend services: ingestion (:8001), weather API (:8002), gateway (:8003), billing (:8004) with BTCPay integration - Shared asyncpg pool, TimescaleDB hypertable, Redis, Mosquitto MQTT - React frontend: Dashboard (MapLibre) and Messaging (chat UI) - Bridge daemon for Pi + Meshtastic (Serial/TCP T-Deck support) - Production Docker Compose, Nginx reverse proxy, ops scripts - DEPLOY.md with step-by-step deployment guide
34 lines
970 B
Bash
Executable File
34 lines
970 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# KosmoConnect Backend Dev Runner
|
|
# Usage: ./run-dev.sh [ingestion|api]
|
|
|
|
SERVICE="${1:-}"
|
|
if [ -z "$SERVICE" ]; then
|
|
echo "Usage: ./run-dev.sh [ingestion|api]"
|
|
exit 1
|
|
fi
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
export PYTHONPATH="${PYTHONPATH:-}:$(pwd)/shared"
|
|
|
|
if [ "$SERVICE" = "ingestion" ]; then
|
|
echo "Starting Ingestion Service..."
|
|
uvicorn ingestion.src.main:app --host 0.0.0.0 --port 8001 --reload
|
|
elif [ "$SERVICE" = "api" ]; then
|
|
echo "Starting API Service..."
|
|
uvicorn api.src.main:app --host 0.0.0.0 --port 8002 --reload
|
|
elif [ "$SERVICE" = "gateway" ]; then
|
|
echo "Starting Gateway Service..."
|
|
uvicorn gateway.src.main:app --host 0.0.0.0 --port 8003 --reload
|
|
elif [ "$SERVICE" = "billing" ]; then
|
|
echo "Starting Billing Service..."
|
|
uvicorn billing.src.main:app --host 0.0.0.0 --port 8004 --reload
|
|
else
|
|
echo "Unknown service: $SERVICE"
|
|
echo "Usage: ./run-dev.sh [ingestion|api]"
|
|
exit 1
|
|
fi
|