Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Afroblman/MERN-Authentication

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
17 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

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.