This is a super simple starter kit to develop APIs with HapiJS + TypeScript
This starter kit comes with the following features:
npm install
npm run nodemon:start
UPDATED: Now there's a CLI that currently support creating a new project from this repo: create-typescript-api
This is not finished, there's still a lot of things to improve. Here you got some:
build-ts
: Compiles typescript based on config set in tsconfig.json.start
: Starts node with the compiled typescript. Used by eg. Heroku.docker:logs
: View Docker logsdocker:ps
: List Docker containersdocker:start
: Start Docker container based on docker-compose.yml file.docker:stop
: Stop Docker containernodemon:build
: Starts the Nodemon using ts-node. No need to compile beforehand.nodemon:start
: Same as nodemon:buildformat:lint
: Runs tslint on the typescipt files, based on tslint.js settings.format:prettier
: Runs prettier on all ts-files.postinstall
: Runs build-ts script. This is used by eg. Heroku automatically.test
: Runs tests using nyc, and creates coverage report.If you found a bug, or you have an answer, or whatever. Please, raise an issue.
Of course, if you see something that you want to upgrade from this library, or a bug that needs to be solved, PRs are welcome!
Distributed under the MIT license. See LICENSE for more information.