This is a MERN (MongoDB, Express, React, Node.js) stack application with JWT authentication and Google login. It features email confirmation using Nodemailer for registered users. Only authenticated users can access the app and the dashboard. The app is styled using Tailwind CSS.
- User registration and login with JWT authentication.
- Google login for easy authentication.
- Email confirmation for registered users.
- Secure access to the app and dashboard for authenticated users.
- Stylish UI with Tailwind CSS.
Follow these instructions to get your MERN stack app up and running.
Make sure you have the following installed:
-
Clone the repository:
git clone https://github.com/lateefibrahim01/my-mern-auth.git
-
Navigate to the project directory:
cd my-mern-auth
-
Install server dependencies:
cd server
npm install
-
Install client dependencies:
cd client
npm install
Before running the app, change the .env.sample to .env and add your credentials
- Start the server:
cd server
npm start
- Start the client:
cd client
npm start
- Open your browser and visit http://localhost:3000 to access the app.
To deploy this app to a production environment, please refer to the deployment documentation for your chosen hosting platform.
Contributions are welcome! If you have any improvements or bug fixes, please submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.