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.
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.
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 the backend
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
http://localhost:5173
to access the frontend.Feel free to contribute by opening issues or submitting pull requests.