This project can be good starting point if you want to create HTTP REST API server using Typescript.
- HTTP Server - Koa (with koa-bodyparser, koa-helmet & koa-joi-router)
- Tests - Mocha, Chai & Supertest
- Logging - Pino
- HTTP Server termination (graceful shutdown)
- Tests
- Auto restart (Nodemon)
- Visual Studio debugging (with support for auto restart)
- API docs generation (koa-joi-router-docs & redoc-cli)
$ npm test
$ npm run dev
$ npm run debug
After running this command you will be able to attach debugger on port 9229
Just run Run & Debug
configuration in VS Code debug menu
$ npm run docs
After running this command static.html
file will appear in docs
directory. Just open it in your browser.
$ npm run build
After running build
command, generated code can be quickly launched with:
$ npm run start
// or
$ npm start