Skip to content

authentication system that allows users to register, log in, and manage their sessions securely using OTP, tokens and email verification

Notifications You must be signed in to change notification settings

KajalDeore04/auth-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The Auth System is a simple authentication system that allows users to register, log in, and manage their sessions securely. This project demonstrates the implementation of user authentication using modern web technologies.

Features

  • User registration
  • User login
  • Session management
  • Password hashing for security
  • User-friendly interface

Technologies Used

Frontend :

  • HTML
  • Tailwind CSS
  • JavaScript
  • React Router DOM
  • React Toastify

Backend :

  • Node.js
  • Express
  • CORS
  • Dotenv
  • Nodemon
  • JWT
  • Mongoose
  • BcryptJS
  • Nodemailer
  • Cookie-Parser

Others :

  • MongoDB
  • Axios

Installation

To set up the Auth System locally, follow these steps :

Clone the repository:

git clone https://github.com/KajalDeore04/auth-system.git 

Set up .env :

rename .env.example to .env
fill in the variable values

Run the project locally:

cd server
npm install
npm run server

backend will run on http://localhost:4000

cd client
npm install
npm run dev

frontend will run on http://localhost:5173

Usage

  • Register a new user Navigate to /register and fill out the registration form.
  • Log in Go to /login and enter your credentials.
  • Access protected routes After logging in, you can access routes that require authentication.

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, please fork the repository and submit a pull request.

Connect with me

About

authentication system that allows users to register, log in, and manage their sessions securely using OTP, tokens and email verification

Topics

Resources

Stars

Watchers

Forks

Languages