This simple boilerplate demonstrates how to use Hapi.JS along with Angular2 Dependency Injection module in TypeScript. There's also a proposal how to structure the modules using di.ts files as plugins.
In order to use this boilerplate you'll need:
- docker
- npm
- make
- typings (https://www.npmjs.com/package/typings,
npm install -g typings
)
Simply:
-
make install
-
make run
First command will install npm packages and ts.d typings. After successfull installation you run the application in docker environment with make run
, which will start docker-compose solution and a gulp-watcher afterwards.
Running make run
starts gulp watcher automatically. This watcher compiles every code changes and triggers server reload inside docker container. If you want to restart the watcher you can do it by make watch
.
In order to stop the server, simply typemake stop
.