Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Full-stack MERN authentication project with secure JWT-based authentication, email verification, password management, and cookie-based sessions.

Notifications You must be signed in to change notification settings

Afroblman/MERN-Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” MERN Authentication System

Screenshot 1 Screenshot 2
Screenshot 3 Screenshot 4

A full-stack MERN authentication project with secure JWT-based authentication, email verification, password management, and cookie-based sessions. Built using modern tools like Vite, Bootstrap, React Toastify, and Nodemailer.


✨ Features

  • βœ… User Signup & Login
  • πŸ“§ Email Verification using Nodemailer
  • πŸ” JWT Authentication
  • πŸͺ Cookie-Based Authentication
  • πŸ”‘ Forgot & Reset Password
  • πŸšͺ Secure Logout
  • πŸ›‘ Protected Routes
  • πŸ”” Toast Notifications
  • ⚑ Fast Frontend with Vite
  • πŸ”„ Auto Server Reload using Nodemon

πŸ›  Tech Stack

Frontend

  • React
  • Bootstrap 5
  • Axios
  • React Toastify

Backend

  • Node.js
  • Express.js
  • MongoDB
  • JSON Web Tokens (JWT)
  • Nodemailer
  • bcryptjs
  • Cookie-Parser
  • Nodemon

Env Variables

Rename the .env.example file to .env and add the following:

MONGODB_URL="your_mongodb_url_here"

JWT_SECRET="your_jwt_secret_here"

NODE_ENV="development"

SMTP_USER="your_email_here"

SMTP_PASS="your_email_password_here"

SENDER_EMAIL="your_email_here"

Installation

  1. Install Backend Dependencies
cd server
npm install
  1. Install Frontend Dependencies
cd client
npm install
  1. Start Backend Server
cd server
npm run server
  1. Start Frontend
cd client
npm run dev

Usage

After starting the application, visit http://localhost:5173 in your browser.

About

Full-stack MERN authentication project with secure JWT-based authentication, email verification, password management, and cookie-based sessions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors