service-status-app

Service
Log | Files | Refs | README

README.md (626B)


      1 # Minimal FastAPI App for DevOps Interview
      2 
      3 This is a small FastAPI application intended for a DevOps / SysAdmin interview task.
      4 
      5 It exposes:
      6 - `GET /` - simple health-style message
      7 - `GET /status` - fetches and returns a simplified status from a public status API
      8 - `GET /status/raw` - returns the full upstream response
      9 
     10 ## Run locally
     11 
     12 ```bash
     13 python -m venv .venv
     14 source .venv/bin/activate
     15 pip install -r requirements.txt
     16 uvicorn main:app --host 0.0.0.0 --port 8000
     17 ```
     18 
     19 Then open:
     20 - `http://localhost:8000/`
     21 - `http://localhost:8000/status`
     22 
     23 ## Environment variables
     24 
     25 - `STATUS_URL` - upstream status endpoint to query
     26 
     27