A full-stack application that predicts transit demand for festival events and visualizes nearby bus stops on an interactive map. Developed during the 24-hour 2025 Edinburgh festivals hackathon with my team of 4 first-years (including me).
The backend was solely contributed by me.
The original non-cleaned version of the repo actually used during the hackathon is: https://github.com/Kaiwen-W/festivals_hackathon
Frontend:
- React (v19)
- Leaflet & React-Leaflet for interactive maps
- React-DatePicker for date selection
- CSS for styling
Backend:
- FastAPI (Python web framework)
- Uvicorn (ASGI server)
- Pandas (data processing)
- GeoPy (distance calculations)
- Requests (API calls to transit data)
- Node.js and npm (for frontend)
- Python 3.8+ (for backend)
Backend Setup:
cd festival-map/backend
pip install -r requirements.txt
python main.pyThe API will be available at http://localhost:8000
Frontend Setup:
cd festival-map
npm install
npm startThe app will open at http://localhost:3000
The backend provides the following endpoints:
- GET
/: basic API information - GET
/events/{event_id}: details for a specific event including nearby bus stops and demand predictions - GET
/events/search: searches events with multiple filter options - GET
/events/list: lists all events with pagination - GET
/stats: returns aggregated statistics about the dataset