Boilerplate template for node and typescript services.
Installation
- npm run setup (install nuget packages & typings)
Run
- gulp build (build ts files)
- gulp test (run mocha tests)
- gulp tslint (run tslint)
- gulp watch (watch ts files)
- npm run start (start the application)
- npm run watch (restart the application when files change)
- npm start (run the application on http://localhost:5000/docs)
Docker
- docker-compose build (compose images)
- docker-compose up (running containers)
- browser: http://localhost:8080/docs (have fun :)
Features
- Project Structure - Feature oriented
- Hapijs - REST Api
- Swagger - documentation
- Jwt - authentication
- Mongoose - MongoDb
- nconf - configurations
- Unit Tests - chai + sinon + mocha
Have fun :)