Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mosesesan/mesan-nodejs-auth-crud-api
NodeJS Authentication and CRUD operations API -: Email Verification, Image Upload, Password Reset
https://github.com/mosesesan/mesan-nodejs-auth-crud-api
api cloudinary cloudinaryapi crud emailverification expressjs jwt jwt-authentication nodejs nodejsapi passport-jwt passportjs passwordreset sendgrid sendgrid-api
Last synced: about 1 month ago
JSON representation
NodeJS Authentication and CRUD operations API -: Email Verification, Image Upload, Password Reset
- Host: GitHub
- URL: https://github.com/mosesesan/mesan-nodejs-auth-crud-api
- Owner: MosesEsan
- Created: 2019-10-01T16:42:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T11:27:43.000Z (almost 2 years ago)
- Last Synced: 2024-04-20T14:34:28.686Z (8 months ago)
- Topics: api, cloudinary, cloudinaryapi, crud, emailverification, expressjs, jwt, jwt-authentication, nodejs, nodejsapi, passport-jwt, passportjs, passwordreset, sendgrid, sendgrid-api
- Language: JavaScript
- Homepage:
- Size: 9.07 MB
- Stars: 78
- Watchers: 3
- Forks: 39
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js Authentication and CRUD API
Node.js Authentication and CRUD API with Email Verification, Image Upload and Password Reset Using JWT, Passport.js and Sendgrid.**This Branch**
Email Verification**Other Branch**
No Email Verification**Tutorial**
Tutorial available here.## Testing
Use Postman to test.**Try accessing the user index route without token [GET]**
https://mesannodejsapiwithverification.herokuapp.com/api/user
![User Index](https://github.com/MosesEsan/mesan-nodejs-auth-crud-api/blob/master/demo/UserIndex.gif "User Index")
**Register and Login**
Create a POST request to /api/auth/register
Create a POST request to /api/auth/login**Make sure to enter a valid email address so you can receive the verification email.**
https://mesannodejsapiwithverification.herokuapp.com/api/auth/register
https://mesannodejsapiwithverification.herokuapp.com/api/auth/login![Register And Login](https://github.com/MosesEsan/mesan-nodejs-auth-crud-api/blob/master/demo/RegisterandLogin.gif "Register And Login")
![Verification Email](https://github.com/MosesEsan/mesan-nodejs-auth-crud-api/blob/master/demo/VerificationEmail.png "Verification Email")
**Update User Info and Upload Profile Image**
Try updating the user information and uploading a profile image using endpoint/api/user/[your_user_id] passing the token.https://mesannodejsapiwithverification.herokuapp.com/api/user/[user_id]
**Login and Recover Password**
Create a POST request to /api/auth/recover to recover your password. An email will be sent to you.https://mesannodejsapiwithverification.herokuapp.com/api/auth/recover
![Password Recovery](https://github.com/MosesEsan/mesan-nodejs-auth-crud-api/blob/master/demo/PasswordRecovery.gif "Password Recovery")
**Reset Password and Login with new Password**
Click the link in the email to reset your password.
Reset the password then attempt to login with your old password. This should fail. Login with your new password![Password Reset](https://github.com/MosesEsan/mesan-nodejs-auth-crud-api/blob/master/demo/PasswordReset.gif "Password Reset")