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