GithubHelp home page GithubHelp logo

thethong / mesan-nodejs-auth-crud-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mosesesan/mesan-nodejs-auth-crud-api

0.0 0.0 0.0 9.71 MB

NodeJS Authentication and CRUD operations API -: Email Verification, Image Upload, Password Reset

JavaScript 96.42% CSS 0.52% Pug 2.96% Procfile 0.10%

mesan-nodejs-auth-crud-api's Introduction

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

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

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

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

mesan-nodejs-auth-crud-api's People

Contributors

mosesesan avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.