- Run
npm install -g typescriptto install TS -> TypeScript - Clone this repo
https://github.com/gabrielhws/node-typescript-restify-api.git - Run
npm installto install dependencies. - Run
npm run tscto compile and create /dist/*.js files. - Run
npm startto see the app athttp://localhost:3000
Powered by Prettier
- Run
npm run buildto compile TS to ES6 - Execute with pm2
pm2 start pm2.json