doron2402 / AuthProject

Source code of a tutorial regarding User authentication with Hapi, Hapi-auth-cookie and Mongoose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AuthProject

Updated version of:

Source code of a post regarding User authentication with Hapi, Passport and Mongoose located at http://emptymind.me/user-authentication-with-hapi-passport-and-mongoose/

The changes can be found on http://emptymind.me/user-authentication-with-hapi-hapi-auth-cookie-and-mongoose/

Getting it to run

Before you're able to get it working you have to enter your MongoLab credentials or alter to code to use a local MongoDB database. Copy the config.example.js file to config.js and enter the following information:

  • Username of your dbuser
  • Password of that dbuser (dbpassword)
  • Replace the first part of the hostname in the url
  • Replace the port number in the url

These are all supplied by MongoLab.

After changing these settings don't forget to run

npm install

to install the dependencies.

===========

Feel free to do whatever you like with the code.

About

Source code of a tutorial regarding User authentication with Hapi, Hapi-auth-cookie and Mongoose

License:Apache License 2.0


Languages

Language:JavaScript 100.0%