https://github.com/msachi/hapi-intro
An introductory code-along for hapi.js framework
https://github.com/msachi/hapi-intro
Last synced: 5 months ago
JSON representation
An introductory code-along for hapi.js framework
- Host: GitHub
- URL: https://github.com/msachi/hapi-intro
- Owner: msachi
- Created: 2017-03-26T16:19:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-02T10:39:15.000Z (about 9 years ago)
- Last Synced: 2025-04-10T14:07:32.052Z (about 1 year ago)
- Language: HTML
- Homepage:
- Size: 258 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## hapi.js - introductory code-along
_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](https://hapijs.com/tutorials/getting-started?lang=en_US).
We will cover the following:
1. Setting up a new project
2. Creating a server
3. Adding a 'Hello, world' route
4. Adding a route that renders user-provided data
5. Serving a static page with `inert`
6. Serving multiple public files
7. Breaking the code up into modules
Further resources:
- [Routing tutorial](https://hapijs.com/tutorials/routing)
- [Serving static files](https://hapijs.com/tutorials/serving-files)