This is a minimalist NodeJS web service starting point using Typescript.
Minimal configuration. Augment as necessary.
Node native http
lib. No router. Single handler in src/app.ts
, HTTP/1.1 server created in src/server.ts
.
Dockerized nodemon dev via npm run docker:dev
so it works on everyone's machine.
Jest runner watches tests while running dev server.
Supertest in tests/app.test.ts
makes HTTP calls to service.
VSCode debug configurations for Service
and Tests
(TODO: expose and bind to container ports vs local)
Run npm docker:build
Dockerized build image from node:10
, final production image from alpine
~34MB
Run container locally via npm run docker:start