A Full-stack Authentication App built with the MERN stack (MongoDB, Express, React, Node.js), incorporating JWT authentication, React Router DOM, Express middleware, Zustand store, Axios for HTTP requests, and various features including protected routes, password verification, user validation, OTP verification, email verification, and more.
- JWT Authentication: Secure authentication using JSON Web Tokens.
- Protected Routes: Restrict access to certain routes based on authentication.
- Password Verification: Secure password storage and verification.
- User Validation: Validate user input on the client and server sides.
- OTP Verification: Two-factor authentication for enhanced security.
- Email Verification: Verify user email addresses during registration.
- Express Middleware: Middleware for handling requests and authentication.
- Zustand Store: State management with Zustand for React applications.
- Axios for HTTP Requests: Simplified HTTP client for requests from the front end.
- Frontend: React.js, React Router DOM, Axios, Formik, Toaster, Tailwind CSS
- Backend: Node.js, Express.js, APIs
- Database: MongoDB
- State Management: Zustand, React Hooks
- Authentication: JWT
-
Clone the repository:
git clone https://github.com/yourusername/mern-auth-app.git
-
Install dependencies:
cd mern-auth-app npm install
-
Set up environment variables:
cp .env.example .env
Fill in the required environment variables.
-
Run the development server:
npm start
-
Open http://localhost:3000 to view it in the browser.
Contributions are welcome! Please follow the Contribution Guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
This README now includes Axios in the Tech Stack section and mentions its usage in making HTTP requests from the frontend.