Skip to content

Latest commit

 

History

History
76 lines (62 loc) · 1.69 KB

Readme.md

File metadata and controls

76 lines (62 loc) · 1.69 KB

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