How ikra132/bug-rush1 works
Bug Rush is a backend API for registering participants and running a coding challenge: clients register, retrieve rounds, submit answers, and consult standings or progress. The Express routes in server.js query MySQL directly; answer submission also refreshes the leaderboard. The README is empty, so capabilities and relationships shown here are limited to the sampled server.js excerpts; database configuration details were not included.
Main entry points: server.js Answer submission
Components 10
Participants
- Registration API
server.js - Participant queries
server.js
Challenge
- Round API
server.js - Answer submission
server.js - Leaderboard updater
server.js
Reporting
- Leaderboard API
server.js - Statistics API
server.js - Progress API
server.js
Other components
- API client
- MySQL database
Connections 16
- API client → Registration API: registers via
server.js - API client → Participant queries: requests participant data
server.js - API client → Round API: requests rounds
server.js - API client → Answer submission: submits answer
server.js - API client → Leaderboard API: requests standings
server.js - API client → Statistics API: requests statistics
server.js - API client → Progress API: requests progress
server.js - Registration API → MySQL database: checks and inserts
server.js - Participant queries → MySQL database: reads participants
server.js - Round API → MySQL database: reads rounds
server.js - Answer submission → MySQL database: reads round and saves answer
server.js - Answer submission → Leaderboard updater: refreshes standings
server.js - Leaderboard updater → MySQL database: upserts standings
server.js - Leaderboard API → MySQL database: reads standings
server.js - Statistics API → MySQL database: queries statistics
server.js - Progress API → MySQL database: queries progress
server.js