Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madeehawaqas04/tailwind_mern_blog_main
mern-blog-tailwind
https://github.com/madeehawaqas04/tailwind_mern_blog_main
authentication authorization authtoken crud firebase forget-password login mern mongodb otp-generator otp-verification redux-toolkit rolebasedauthrorization signup tailwindcss
Last synced: 1 day ago
JSON representation
mern-blog-tailwind
- Host: GitHub
- URL: https://github.com/madeehawaqas04/tailwind_mern_blog_main
- Owner: madeehawaqas04
- Created: 2024-03-29T17:29:52.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-16T20:01:52.000Z (8 months ago)
- Last Synced: 2024-04-17T00:18:01.835Z (8 months ago)
- Topics: authentication, authorization, authtoken, crud, firebase, forget-password, login, mern, mongodb, otp-generator, otp-verification, redux-toolkit, rolebasedauthrorization, signup, tailwindcss
- Language: JavaScript
- Homepage: https://tailwind-mern-blog.vercel.app/
- Size: 1.13 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MERN Blog Portal
This repository contains the code for implementing a complete Blog Website using MERN (MongoDB, Express.js, React.js, Node.js) stack with fully functional admin portal, user can register, login, change password verify their identity using OTP sent to their email, update profile with profile image add, update, delete blogs.
## Features
- User Registration
- OTP Verification
- User Authentication
- Change Password
- Password Encryption
- Token-Based Authentication
- User Authorization
- Profile Update
- Create, update, delete, View Posts
- Responsive UI
- Tailwind CSS## Tech Stack
- Frontend:
- React.js
- React Router
- Axios
- Material-UI
- Tailwind CSS- Backend:
- Node.js
- Express.js
- MongoDB
- Mongoose
- JSON Web Tokens (JWT)
- Nodemailer (for email OTP)## Setup Instructions
1. **Backend Setup**:
- Navigate to the `backend` directory:
```bash
cd backend
```
- Install dependencies:
```bash
npm install
```
- Configure environment variables:
- Create a `.env` file based on the provided `.env.example` template.
- Update the environment variables with your MongoDB connection URI, JWT secret key, and Twilio API credentials (if using SMS OTP).
- Start the backend server:
```bash
npm start
```3. **Frontend Setup**:
- Navigate to the `frontend` directory:
```bash
cd frontend
```
- Install dependencies:
```bash
npm install
```
- Start the frontend development server:
```bash
npm start
```4. **Access the Application**:
- Once both the backend and frontend servers are running, you can access the application at `http://localhost:3000` in your web browser.
---Feel free to explore, test, and customize this OTP authentication system according to your requirements. If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
Happy coding! 🚀