The purpose of this app is to show a new way to work with Hapi.js, Passport.js, Mongodb, Mongoose, Angular.js.
Run the following command in root directory of an app in command prompt.
server/ npm install
Run the following command in root directory of an app in command prompt.
server/ node server.js
You can see the port number in command prompt after sucessfull run
You can change the settings in server/config/config.js file
POST: http://localhost:8080/register
{
"email":"someEmail",
"password":"somepassword",
"userName":"Cronj"
}
POST: http://localhost:8080/login
{
"email":"someEmail",
"password":"somepassword"
}
GET: http://localhost:8080/logout
[Can also look into Hapi File Upload And Download for all type] (https://github.com/Cron-J/Hapi-file-upload-download)
[Express-Mongoose-Angular] (https://github.com/Cron-J/Express-file-upload-download)
[JWT-Hapi-Mongoose-Mongodb-with-email-verification-and-forgot-password] (https://github.com/Cron-J/JWT-Hapi-Mongoose-Mongodb-with-email-verification-and-forgot-password)