Install your Node dependencies
$ yarn install
# == OR ==
$ npm installEnsure that your application has a .env file. This should happen automatically with yarn install or npm install. If not, copy .env.example to .env.
$ npm startThe development mode uses ts-node (enabling live debugging), which the author does not guarantee is prepared for production.
Build the Node-compliant code
$ npm run buildBuilt files will be placed in /dist.
Modify your .env file to "production" mode
# .env
NODE_ENV=production
PORT=8080Run the server
$ npm start