AuthMaster is a robust authentication platform built using the MERN stack (MongoDB, Express.js, React, Node.js). It provides a comprehensive solution for managing user authentication with best practices such as signup, login, email verification, password recovery, and more.
Live Website Link : Click Here
- User Signup & Login: Secure registration and login functionality with JWT (JSON Web Tokens).
- Email Verification: Confirm user email addresses through automated verification emails.
- Password Recovery: Enable users to recover their passwords with a secure email-based reset process.
- Welcome Emails: Send personalized welcome emails upon successful registration.
- Profile Management: Allow users to manage their profiles, update personal information, and securely change passwords.
- Frontend: React
- Backend: Node.js, Express.js
- Database: MongoDB
-
Clone the repository:
git clone https://github.com/MamunKhan71/AuthMaster cd AuthMaster
-
Install dependencies:
npm install
-
Install frontend and backend dependencies:
npm run build
-
Set up environment variables: Create a
.env
file in thebackend
directory and add the following variables:MONGO_URI=your_mongodb_uri PORT=your_local_port JWT_SECRET=your_secret_key NODE_ENV=development MAILTRAP_ENDPOINT=your_mailtrap_endpoint MAILTRAP_TOKEN=your_mailtrap_token CLIENT_URL=http://localhost:5173
-
Run the backend server:
cd backend npm start
-
Run the backend development server:
npm run dev
-
Run the frontend development server:
cd frontend npm run dev
- Access the application: Open your browser and navigate to
http://localhost:5173
to access the frontend. - API Documentation: Refer to the docs endpoint on the backend server for API documentation.
Feel free to contribute by opening issues or submitting pull requests.
- Inspired by best practices in authentication and user management.
- Utilizes various libraries and tools for enhanced security and performance.