https://github.com/mshandev/jwt-authentication-mern
This project demonstrates secure user authentication in a MERN stack application, leveraging JSON Web Tokens (JWT) and Bcrypt for effective password hashing and session management. It provides a comprehensive solution for implementing authentication and authorization in web applications.
https://github.com/mshandev/jwt-authentication-mern
authentication bcrypt-nodejs expressjs jwt-authentication jwt-token login mern-project mern-stack mongoose nodejs react signup
Last synced: 3 months ago
JSON representation
This project demonstrates secure user authentication in a MERN stack application, leveraging JSON Web Tokens (JWT) and Bcrypt for effective password hashing and session management. It provides a comprehensive solution for implementing authentication and authorization in web applications.
- Host: GitHub
- URL: https://github.com/mshandev/jwt-authentication-mern
- Owner: Mshandev
- Created: 2024-07-29T14:02:41.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-30T12:50:51.000Z (9 months ago)
- Last Synced: 2025-01-13T05:29:22.221Z (5 months ago)
- Topics: authentication, bcrypt-nodejs, expressjs, jwt-authentication, jwt-token, login, mern-project, mern-stack, mongoose, nodejs, react, signup
- Language: JavaScript
- Homepage: https://jwt-authentication-mern.vercel.app
- Size: 372 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MERN Authentication with JWT
This repository hosts the source code for the MERN Authentication project, a robust authentication system built using the MERN Stack. It features secure user authentication and password management with JWT and Bcrypt.
## Demo
[https://jwt-authentication-mern.vercel.app/](https://jwt-authentication-mern.vercel.app/)
## Features
- Login & Signup Pages: Secure user authentication with email and password.
- Home Page: A user-friendly home page accessible after login.
- Password Hashing: Secure password storage using Bcrypt.
- JWT Authentication: User authentication with JSON Web Tokens (JWT), stored in local storage to keep users logged in.
- Logout: Option to log out and invalidate the session.## Screenshots



## Run Locally
Clone the project
```bash
git clone https://github.com/Mshandev/MERN-Authentication-JWT
```
Go to the project directory```bash
cd MERN-Authentication-JWT
```
Install dependencies```bash
npm install
```
Setup Environment Vaiables```Make .env file and store environment Variables
SALT=10
JWTPRIVATEKEY=PRIVATE_KEY
DB=YOUR-DB-URL
```
Start the server```bash
npm start
```
## Tech Stack
* [React](https://reactjs.org/)
* [Node.js](https://nodejs.org/en)
* [Express.js](https://expressjs.com/)
* [Mongodb](https://www.mongodb.com/)## Deployment
The application is deployed on Vercel.
## Contributing
Contributions are always welcome!
Just raise an issue, and we will discuss it.## Feedback
If you have any feedback, please reach out to me [here](https://www.linkedin.com/in/muhammad-shan-full-stack-developer/)