The user API module allows registering, logging in, forgetting the password, email sign up verification, and different validation. The code is completely written in APIs of Node. js library which is asynchronous, that is, non-blocking, Very Fast − built on Google Chrome's V8 JavaScript Engine. Nodejs help developers design various apps with cross-platform support. That's why I love Nodejs.
You are not allowed commercial use of this code whenever you are permitted to use it for an educational purpose only to understand how system engineering works.
There are some security implementations applied whenever lots of industry-standard have to be implemented.
To deploy this project run
npm installTo run this project run
node app.jsBefore starting the programme be sure all the environment variable is set in your .env file
{
"fullname": "Hari Prasad Dahal",
"email": "dahal.harry1@gmail.com",
"username": "hariprasadoo",
"password": "ValidPassword@79",
"passwordagain": "ValidPassword@79"
}{
"email": "dahal.harry1@gmail.com",
"password": "ValidPassword@79"
}You should use Bearer Token to get authenticated to use the update route.
{
"fullname": "Hari Prasad Dahal",
"email": "dahal.harry1@gmail.com",
"username": "hariprasadoo",
"oldpassword":"ValidOldPassword@79",
"password":"ValidPassword@79",
"passwordagain":"ValidPassword@79",
"phone":"985-117-9323",
"dob": "1995-09-24T04:15:00.000Z",
"pob":"Kathmandu",
"cob":"Nepal"
}{
"email": "dahal.harry1@gmail.com",
"password":"ValidPassword@79",
"passwordagain":"ValidPassword@79"
}Below code is to test Relational database entry inside asrtologer table.
{
"email": "dahal.harry1@gmail.com",
"abbreviation": "Sir",
"university": "TU",
"los": "BSc",
"sector": "Physics"
}{
"email": "dahal.harry1@gmail.com",
"abbreviation": "SirUp",
"university": "TU_Up",
"los": "BScUp",
"sector": "PhysicsUp"
}