Use Nest framework TypeScript starter repository. Nest.js Controller & constructor + Injectable & @Module
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# create {POST}
http://127.0.0.1:3000/cats
body raw
{
"name": "small white",
"age": 3,
"breed": "Garfield"
}
# Find {get}
http://127.0.0.1:3000/cats
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov