Skip to content

😮 Example(s) of how to use the hapi-register plugin to create a simple registration form.

Notifications You must be signed in to change notification settings

dwyl/hapi-register-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hapi-register example

Build Status codecov.io Code Climate Dependency Status devDependency Status HitCount

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: Join the chat at https://gitter.im/dwyl/chat

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/

register form

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:

register-1of4

register-3of4

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

Avoids Cross Site Scripting: register-hack-1of2

Displays welcome message on successful registration: reg-success-1of2

Want More?

If you would like to see this example expanded, please either create an issue with a specific request or Join the chat at https://gitter.im/dwyl/chat

About

😮 Example(s) of how to use the hapi-register plugin to create a simple registration form.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published