The purpose of this app is to show a new way to work with Hapi.js, Mongodb, Mongoose, Angular.js.
Run the following command in root directory of an app in command prompt.
server/ node install
client/src/ bower 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:8000/user
{
"userId": "www.cronj.com",
"username": "[email protected]"
}
GET: http://localhost:8000/user
GET: http://localhost:8000/user/{userId}
Example : http://localhost:8000/user/www.cronj.com
PUT: http://localhost:8000/user/{userId}
Example : http://localhost:8000/user/www.cronj.com
{
"username": "[email protected]"
}
DELETE: http://localhost:8000/user/{userId}
Example : http://localhost:8000/user/www.cronj.com
DELETE: http://localhost:8000/user
Example : http://localhost:8000/user
[Visit Blog For Explanation] (http://cronj.com/blog/hapi-mongoose/)
[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)