Before we start, please clone this repo. It contains the public folder with some example files (html,css,js) which we will practice serving using hapi. If you prefer you can create your own public folder with arbitrary files.
The code-along will be based largely on this hapi tutorial.
We will cover the following:
- Setting up a new project
- Creating a server
- Adding a 'Hello, world' route
- Adding a route that renders user-provided data
- Serving a static page with
inert - Serving multiple public files
- Breaking the code up into modules
Further resources: