# BlackRoad OS - Minimal Service Template A production-ready FastAPI service template that implements the BlackRoad OS syscall API specification. ## Features ✅ **Core Endpoints**: - `/` - Hello World landing page (HTML) - `/health` - Basic health check (required by Railway) - `/version` - Version information ✅ **Syscall API Endpoints** (BlackRoad OS standard): - `/v1/sys/identity` - Complete service identity - `/v1/sys/health` - Detailed health metrics - `/v1/sys/version` - Extended version info - `/v1/sys/config` - Service configuration ✅ **Additional Features**: - CORS middleware - Custom error handlers (404, 500) - OpenAPI documentation (`/api/docs`, `/api/redoc`) - Railway deployment support - Environment-based configuration - Startup/shutdown hooks ## Usage ### 1. Local Development ```bash # Install dependencies pip install fastapi uvicorn # Set environment variables export SERVICE_NAME="blackroad-os-example" export SERVICE_ROLE="example" export ENVIRONMENT="development" export PORT=8000 # Run the service python main.py ``` Visit: http://localhost:8000 ### 2. Deploy to Railway ```bash # 1. Copy this template to your satellite repo cp templates/minimal-service/main.py /path/to/satellite-repo/ # 2. Create Dockerfile cat > Dockerfile < requirements.txt <