/learn-hapi

I am following the PDF book 'Getting Started with Hapi' with code examples.

Primary LanguageJavaScript

Pre works

Install node packages

npm install

Install forever tool

npm install -g forever

Run an example

Run example server

forever -w <example>

# example
forever -w hapi-hello

Run example

$ curl http://127.0.0.1:1337/
Hello World