hapi-register example
March 9, 2016 · View on GitHub
Why?
"I hear and I forget. I see and I remember. I do and I understand." ~ Confucius
We did not find an end-to-end solution+tutorial for registration in Hapi.js apps, so we wrote it.
if anything is unclear in this (or any of our other repos),
please tell us:
What?
This repo is a showcase for how to use the hapi-register plugin for a simple (yet complete) web/app registration process.
## Try it: https://hapi-reg.herokuapp.com/

How?
The best way to get started is to run this example locally.
1. Clone the repo:
git clone https://github.com/dwyl/hapi-register-example.git
2. Install Dependencies from NPM
npm install
3. Run the Server
npm start
That's it.
Now, hack to heart's content!
When we submit the form without any of the required fields we see:


We also use https://github.com/chriso/validator.js to mitigate Cross Site Scripting vulnerability:
Avoids Cross Site Scripting:

Displays welcome message on successful registration:

Want More?
If you would like to see this example expanded,
please either create an issue
with a specific request or