Skip to content

Koyyada-Akhil/Mern-Stack-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT Authentication System 🔐

A secure full stack authentication system built with Node.js, React.js and MongoDB.

🔗 Live Demo

  • Frontend: [your-vercel-link]
  • Backend API: [your-render-link]

✨ Features

  • User registration and login
  • JWT token generation and verification
  • Role-based protected routes
  • Session persistence using React Context API
  • 100% of private routes secured
  • CORS configured for frontend-backend communication

🛠️ Tech Stack

Layer Technology
Backend Node.js, Express.js, JWT
Frontend React.js, React Context API, Axios
Database MongoDB
Deployment Render (backend), Vercel (frontend)

🚀 How to Run Locally

Backend

git clone https://github.com/Koyyada-Akhil/your-repo-name
cd backend
npm install
npm start

Frontend

cd frontend
npm install
npm start

🔑 Environment Variables

Create a .env file in backend folder:

JWT_SECRET=your_secret_key
MONGO_URI=your_mongodb_connection_string
PORT=5000

About

Built a React & Node.js authentication system with registration, login, and protected profile dashboard. Used JWT for secure token-based authentication, React Context for global state, Axios for API calls, and React Router for route protection and redirection.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors