Skip to content

A minimal and reusable MERN stack authentication boilerplate built with MongoDB, Express.js, React (Vite), and Node.js. Includes user registration, login, JWT-based authentication, and a protected dashboard route. Perfect for starting any MERN project quickly or using as a reusable template for new apps.

Notifications You must be signed in to change notification settings

Git-Code-Home/JWT-Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Fullstack Mini Auth Starter

This project is a complete MERN stack (MongoDB, Express.js, React, Node.js) authentication boilerplate. It provides a simple, reusable foundation for full-stack applications that require user registration, login, and protected routes.

The purpose of this project is to serve as a starter template for developers who want to quickly build or test authentication-based projects without starting from scratch.

Project Overview

This application includes both a backend (Node.js + Express + MongoDB) and a frontend (React + Vite). Users can register, log in, and access a protected dashboard page. Authentication is managed using JSON Web Tokens (JWT).

The UI is minimal and only for testing functionality. It is a basic dummy interface and does not include enhanced styling or design elements. You can later customize and improve the UI as per your requirements.

Key Features

Full MERN stack implementation

User registration and login

JWT-based authentication

Protected dashboard route

Secure password hashing using bcrypt

RESTful API architecture

Environment-based configuration using .env

Ready for MongoDB Atlas or local MongoDB

Simple folder structure for easy scalability

Technologies Used

Frontend: React (Vite), Axios, React Router DOM Backend: Node.js, Express.js, MongoDB, Mongoose, JWT, Bcrypt.js Database: MongoDB (local or cloud using MongoDB Atlas)

Note

The current user interface is a basic dummy design created only to test functionality. It does not include styling, advanced UI components, or responsive design. You can enhance the UI using frameworks like Tailwind CSS, Material UI, or Bootstrap later.

Author

Developed by Kashaf

This project is part of a series of reusable MERN stack snippets for learning and real-world use.

About

A minimal and reusable MERN stack authentication boilerplate built with MongoDB, Express.js, React (Vite), and Node.js. Includes user registration, login, JWT-based authentication, and a protected dashboard route. Perfect for starting any MERN project quickly or using as a reusable template for new apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published