Files
kosmo-connect/backend/run-dev.sh
Tomas Kracmar 0a4fb7b55e
Some checks failed
CI / lint-docs (push) Has been cancelled
CI / build-firmware (push) Has been cancelled
CI / test-backend (push) Has been cancelled
CI / test-web (push) Has been cancelled
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
2026-04-12 17:30:15 +02:00

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