$ npm install
# install ts-node (may need sudo)
$ npm -g install ts-node
# install sqlite3 (for test)
$ sudo apt-get install sqlite3
$ sqlite3 --version
# install global ts-node
$ npm install -g ts-node
# local
$ npm run start
# production mode
$ npm run start:prod
# unit test
$ npm run test
# e2e test
$ npm run test:e2e
# test coverage
$ npm run test:cov
use settings.json in VSCode
open settings
# cmd + shift + p (or ctrl + shift + p)
write lint settings
"editor.formatOnSave": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}