How sullaspqr/chess-backend works
This is a small Express API for managing chess-player records. Clients send JSON requests to list, look up, create, update, or delete records; the handlers operate directly on an in-memory array and return JSON responses. The same server exposes generated Swagger documentation through Swagger UI. The only runtime implementation is in server.js; the repository shows no persistent database or separate domain layer.
Main entry points: server.js Express routes
Components 4
API and docs
- Express routes
server.js - Swagger UI
server.js
In-memory records
- Chess records
server.js
Other components
- API client
Connections 4
- API client → Express routes: sends requests
server.js - Express routes → Chess records: reads and mutates
server.js - Express routes → API client: returns JSON
server.js - API client → Swagger UI: opens docs
server.js