feat: initial KosmoConnect platform v0.1
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
This commit is contained in:
33
backend/run-dev.sh
Executable file
33
backend/run-dev.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user