mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-29 21:15:16 +02:00
677 B
677 B
Engineering conventions
These conventions apply to every ticket, every route, every change:
- Errors: every error response is JSON with the envelope
{ "error": { "code": "<SCREAMING_SNAKE>", "message": "<human readable>" } }and the matching HTTP status. No HTML error pages, no stack traces. - Layering: HTTP handling in
src/routes.js, business logic insrc/service.js, storage insrc/store.js.src/app.jswires them. - Runtime config comes from environment variables, read at startup.
- Every ticket: add tests under
test/, add aCHANGELOG.mdentry describing what shipped, and keepREADME.mdaccurate. - No external dependencies.