My personal NodeJS bootstrap setup project; based in: original source By RocketSeat
You can edit any config in the package.json according to your preference.
First, install the dependencies.
$ npm install
Run the local dev server
$ yarn dev file_name.ts
Or via npm:
$ npm run dev file_name.ts
Run the Jest tests files:
$ yarn test
Build your project from tsc:
$ yarn tsc
or just:
$ tsc
Run the server in dev mode
$ yarn dev
or
$ npm run dev
Bult your project with Babel
$ yarn build
Run your server in production mode
$ yarn start
or
$ npm run start