/api.express.ts

Express : OAUTH REST API : Typescript

Primary LanguageTypeScriptOtherNOASSERTION

api.express.ts

License Travis Coveralls Releases Pull Requests Issues

Setup

npm install -g yarn
yarn install -g ts-node
yarn install -g typescript@2.x.x
yarn install

Usage

yarn run (cmd)
  • cmd : is a command from the lists below
yarn serve -- --host (host) --https (https) --http (http) --debug
  • host : is the host to bind
  • https : is the https port to bind
  • http : is the http port to bind
  • debug : is to enable debug mode

Commands

Command Description
start alias for serve
serve serve /src using ts-node http://localhost:3080
serve:log alias for serve with logs
serve:log:bak alias for serve with logs in background
serve:analyze serve /doc/analyze using http-server http://localhost:8080
serve:coverage serve /doc/coverage using http-server http://localhost:8080
serve:dist serve /dist using http-server http://localhost:8080
serve:doc serve /doc/typedoc using http-server http://localhost:8080
doc run documentation generation to /doc/typedoc using typedoc
lint run static analysis to /doc/analyze using tslint
test alias for test:all
test:one (test) run one unit test using mocha
test:all run all unit tests using mocha

Notes

  • See : package.json

License: MIT