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.
- User registration
- User login
- Session management
- Password hashing for security
- User-friendly interface
- HTML
- Tailwind CSS
- JavaScript
- React Router DOM
- React Toastify
- Node.js
- Express
- CORS
- Dotenv
- Nodemon
- JWT
- Mongoose
- BcryptJS
- Nodemailer
- Cookie-Parser
- MongoDB
- Axios
To set up the Auth System locally, follow these steps :
git clone https://github.com/KajalDeore04/auth-system.git
rename .env.example to .env
fill in the variable values
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
- 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.
Contributions are welcome! If you have suggestions for improvements or new features, please fork the repository and submit a pull request.