{"repo":"BlackBoxVision/typescript-hapi-starter","free":true,"listed":false,"github":"https://github.com/BlackBoxVision/typescript-hapi-starter","clone":"git clone https://github.com/BlackBoxVision/typescript-hapi-starter.git","description":"🚀 Starter for building APIs with Hapi + Typescript!","language":"TypeScript","stars":128,"topics":["typescript","hapijs","api","swagger-ui","hapi-typescript","library"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"TypeScript + Hapi = 12.x - NPM 6.x How to use it? 1. Download this project as a zip. 2. Run npm install 3. Run npm run nodemon:start 4. Visit http://localhost:8080/documentation to view swagger docs. 5. Visit http://localhost:8080/api/users to test the REST API. 6. Visit http://localhost:8080/status to view the status monitor. UPDATED: Now there's a CLI that currently support creating a new project from this repo: create-typescript-api TODO This is not finished, there's still a lot of things to improve. Here you got some: - [x] Simple test suite - added by the help of @jcloutz - [x] Add support for test coverage - added by the help of @jcloutz - [ ] Add GraphQL support - [ ] Add support for Auth with JWT or Sessions - [ ] Add support for TypeORM/Mongoose - [ ] Add support for Jenkins pipeline Documentation What are the package.json scripts for? - 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 logs - docker:ps : List Docker containers - docker:start : Start Docker container based on docker-compose.yml file. - docker:stop : Stop Docker container - nodemon:build : Starts the Nodemon using ts-node. No need to compile beforehand. - nodemon:start : Same as nodemon:build - format: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. Herok","default_branch":null,"files":null,"tree":[],"storefront":"/r/BlackBoxVision","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BlackBoxVision/typescript-hapi-starter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}