Nodejs microservice template built with typescript, fastify swagger, jest and more...
MIT License
Proof of concept of a microservice that runs in node 14 using the following stack:
npm run dev
: starts server in dev mode that restars on ./src changes:
server is be localhost:5000
, try http://localhost:5000/api/now
.
docs are available on http://localhost:5000/api/now/documentation
npm run build
: build for production.
npm run start
:starts server in production mode.
npm dev:debug
: starts server in dev mode with debugger attached, try chrome://inspect/#devices
in chrome.
npm run test
: runs tests.
build image:docker build --tag timestamp-service:<tag> .
run dockerize app: docker run --rm -p 5000:5000 timestamp-service:<tag>
"node": "^14.0.0",
"npm": "^6.14.4"