Project skeleton for hapi & Typescript apps.
- Docker v18.03.0 or higher (for local development)
- Compose 1.20.1 or higher (for local development)
- Node 9.0.0 or higher
- Run
yarn
to install dependencies. - Copy
env-sample
as.env
and fill in the blanks. - Run
source .env
to read env variables. - Run
yarn dev:start
to start Postgres server in Docker (yarn dev:stop
to shut it down). - Run
yarn dev
to start development server.
- Run
yarn build
to make production build. - Run
yarn start
to start production server.
Swagger documentation is generated automatically and can be found at http://host:port/documentation
- Run
yarn test
to run tests. - Run
yarn lint
to run TSLint.
This project is a grateful recipient of the Futurice Open Source sponsorship program.
MIT