
learn to build a user authentication system with MERN stack, including email/password login and signup, forget password with OTP, and social logins via Google and Facebook, all secured by JWT.
Demonstrates building a modern stock photo sharing app using the MERN stack, featuring responsive front-end image cards and modals, lazy loading, and swagger-documented APIs.
Learn to create and test basic routes in a MERN app by building an image router, wiring up express routes, testing with Postman, and preparing for CRUD operations.
Create a mongoose image model with a title, image URL, and public_id for Cloudinary uploads. Prepare for Cloudinary integration and CRUD operations in Node.js.
Implement a get all images endpoint that retrieves all images with images.find, returns 200 with results or a no image found message, and handles errors with 500.
Document the delete image route in Swagger, specify id path parameter, define 200, 400, and 500 responses, and confirm image removal from Cloudinary and database for deployment.
Install and configure react router dom to create routes for all images and upload pages, wrap the app in a router, and define base and upload paths with simple components.
Design a reusable application layout with a navbar and outlet-driven routing using React Router, including active route highlighting and setup for image upload and back-end integration.
Optimize image cards in a React MERN app with a lazy load image component for incremental loading, add a title and action menu, and implement image uploads to the backend.
Implement image delete by sending the selected image id to /api/image with axios, manage loading, and filter the client-side images array to remove the deleted id.
Create an image gallery modal that opens images in full screen with next and previous navigation, using an image model component and context-provided images with lazy loading.
Create a project folder and set up a React app with TypeScript and SWC. Install dependencies and run the dev server to launch the app on localhost 5173.
Set up navigation in a react app with react-router-dom by configuring browser router and routes, rendering login, signup, forget password, and a protected home route.
Guard the home route with an auth middleware that redirects unauthenticated users. Leverage a protected route, outlet rendering, and a wild route for not found pages.
Learn to build a signup form by binding inputs to a useState object, adding an onChange handler, and immutably updating username, email, and password fields.
Learn to secure a signup form with client-side validation using regex, including email and password rules, and integrate toast notifications for user feedback.
Learn to implement toaster-based validations using React Hot Toast; validate email, username, and password with regex, show error toasts for invalid fields and a success toast on submit.
Learn to send a verification email on user signup with node mailer, configure a Gmail transport, and verify the token to set the user's verification status to true.
Create a JWT authentication middleware in Node.js to verify tokens sent from the front end, extract decoded data, and protect the update user route with bearer token verification.
Welcome to this in-depth MERN Stack Authentication course, where you will go deeply into the details of security and user authentication with OAuth, JWT, and email verification. This course is intended for developers, regardless of expertise level, who wish to include strong authentication mechanisms into their MERN Stack applications.
What You'll Learn:
Google and Facebook Authentication Systems: Learn how to combine OAuth authentication with Google and Facebook to enable users to safely log in with their social network credentials.
Email Verification: Discover how to add email verification to your application so that legitimate users are the only ones who can access it.
OTP System: Learn about One-Time Password (OTP) systems and how to use them to verify and authenticate users securely.
Update User Information: Find out how you protect user privacy and data integrity while enabling users to safely update their profile information.
Secure API Endpoint Writing: Learn the craft of creating safe Node.js and Express.js API endpoints by applying best practices for permission and authentication.
You will have the abilities and know-how to create reliable authentication systems in your MERN Stack applications at the end of the course, guaranteeing the security and accuracy of user data. You'll also learn about sophisticated authentication methods and approaches, which will enable you to keep up with developments in the field.