/node-typescript-restify-api

The initial design instructions of an API that uses node.js/typescript and restify.

Primary LanguageTypeScript

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