Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 551 Bytes

File metadata and controls

20 lines (14 loc) · 551 Bytes

SAMPLE Restful API WITH RESTIFY

Install

  1. Run npm install -g typescript to install TS -> TypeScript
  2. Clone this repo https://github.com/gabrielhws/node-typescript-restify-api.git
  3. Run npm install to install dependencies.
  4. Run npm run tsc to compile and create /dist/*.js files.
  5. Run npm start to see the app at http://localhost:3000

Lint

Powered by Prettier

Deploy

  1. Run npm run build to compile TS to ES6
  2. Execute with pm2 pm2 start pm2.json