JSON API for the Offpeak travel planning tool. Reads city data from CSV files at startup and serves it in memory.
Live: https://offpeak-web-production.up.railway.app/
GET /api/v1/cities
GET /api/v1/cities/{slug}?planning_year=2026&years=2018,2019,2024
GET /api/v1/cities/{slug}/weather
GET /api/v1/cities/{slug}/arrivals?planning_year=2026&years=2018,2019,2024
cargo runExpects CSV files in data/. Override with DATA_DIR env var. Port defaults to 3000, override with PORT.
docker build -t offpeak-api .
docker run -p 3000:3000 offpeak-apiDeployed on Railway via Dockerfile. Set PORT automatically by Railway.