Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to build a Node.js API with JWT authentication in this comprehensive tutorial. Create a secure authentication system using MongoDB, Mongoose, bcryptjs, and JSON Web Tokens. Set up an Express server, connect to a database, create user models, and implement user registration with password hashing. Explore validation using Joi, set up login routes, and create private routes protected by JWT. Master the essentials of building a robust authentication system for your Node.js applications.
Syllabus
Introduction
Setting up express
Connecting to a database
.env files
Creating models in mongoose
Registering a user
Validation with Joi
Hashing passwords
Setting up the login route
Adding jsonwebtokens to our auth
Creating private routes with jwt
Taught by
developedbyed