Quick Start¶
Get DRACO METRIC running locally in under 2 minutes with Swagger UI and ReDoc enabled.
Prerequisites¶
- Python 3.13+
- uv package manager
Steps¶
1. Clone and install¶
2. Create development config¶
Edit .env and set:
Tip
Setting DEBUG=true enables /docs (Swagger UI), /redoc (ReDoc), and /openapi.json.
3. Start the server¶
4. Explore the API¶
Open your browser:
| URL | Description |
|---|---|
| http://localhost:8000/docs | Swagger UI (interactive) |
| http://localhost:8000/redoc | ReDoc (reference) |
| http://localhost:8000/health | Health check |
5. Make your first request¶
# Get NordVPN servers (first page)
curl http://localhost:8000/api/nordvpn/servers?page_size=5
# Get Surfshark servers for Brazil
curl http://localhost:8000/api/surfshark/servers/BR
# List available countries
curl http://localhost:8000/api/nordvpn/countries
# Get top 5 lowest-load servers
curl http://localhost:8000/api/nordvpn/servers/top?limit=5
6. Run tests¶
Next Steps¶
- Configuration Reference - All environment variables explained
- API Reference - Complete endpoint documentation
- Production Deployment - Deploy securely