Minimal Express demo. For a fuller template (more tests, workflows, docs), see my-node-app. This repo stays lean on purpose.
Run: npm run dev
Env: PORT=4000 in .env
Example routes served by the template app.
- GET / -> Hello
- GET /api/health -> { ok: true }
- POST /api/echo -> echoes JSON body
- npm test
- npm run test:watch
- npm run test:coverage
- npm run coverage:open
- Coverage & thresholds: github.com/lizc-au/dev-cheatsheets/blob/main/docs/coverage-cheatsheet.md
- Git PR workflow (protected main): github.com/lizc-au/dev-cheatsheets/blob/main/docs/git-pr-workflow.md
- YAML via Base64 (CRLF + 2/4/6): github.com/lizc-au/dev-cheatsheets/blob/main/docs/yaml-base64-template.md
- Required checks: CodeQL, build
- Strict up-to-date: ON
- Do not require on create: ON
- Ruleset JSON: docs/ruleset-main.json
- See Releases: github.com/lizc-au/hello-express/releases