How v-par23/sprint-board-api works
Sprint Board is a lightweight HTTP API for managing projects, sprints, and issues, with in-memory persistence. An API client requests issue operations or a sprint summary; the server passes requests to the app, which matches routes and dispatches to issue or reporting services. Issue operations validate fields and workflow transitions before writing to the store; sprint reporting reads sprint and issue data to calculate progress by story points. The README documents board and report consumers; runtime links below are based on the sampled source and README.
Main entry points: app.js Request Handler · issueService.js Issue Service · server.js HTTP Server · sprintService.js Sprint Reports
Components 11
HTTP API
- HTTP Server
src/server.js - Request Handler
src/app.js - Path Router
src/router.js - API Errors
src/errors.js
Issue Workflow
- Issue Service
src/services/issueService.js - Workflow Rules
src/workflows.js - Issue Constants
src/constants.js
Sprint Reporting
- Sprint Reports
src/services/sprintService.js
Runtime Data
- Memory Store
src/store/memoryStore.js - Demo Dataset
src/data/seed.js
Other components
- API Client
Connections 14
- API Client → HTTP Server: sends HTTP
README.md - HTTP Server → Request Handler: handles requests
src/server.js - HTTP Server → Memory Store: creates store
src/server.js - HTTP Server → Demo Dataset: loads demo data
src/server.js - Request Handler → Path Router: matches routes
src/app.js - Request Handler → Issue Service: dispatches issue calls
src/app.js - Request Handler → Sprint Reports: dispatches report calls
src/app.js - Request Handler → API Errors: formats errors
src/app.js - Issue Service → Memory Store: reads and writes
src/services/issueService.js - Issue Service → Workflow Rules: checks transitions
src/services/issueService.js - Issue Service → Issue Constants: validates types
src/services/issueService.js - Issue Service → API Errors: throws validation errors
src/services/issueService.js - Sprint Reports → Memory Store: reads sprint data
src/services/sprintService.js - Sprint Reports → API Errors: throws not-found errors
src/services/sprintService.js