Welcome to the Blog Website Using MERN repository! This project is a full-stack blogging platform built with the MERN stack (MongoDB, Express.js, React.js, and Node.js). Whether you want to read blogs, create your own, or explore trending content, this platform provides a seamless experience.
- 🖋️ Create, Edit, and Delete Blogs: Write about your favorite topics and manage them effortlessly.
- 🔍 Explore Blogs: Browse blogs from other users.
- 🔐 Authentication: Secure login and signup system using JWT.
- 🎨 Responsive Design: Optimized for all screen sizes.
- ⚡ Fast and Scalable: Built with modern technologies for performance and scalability.
Check out the live demo of the project: Demo Link
- React.js: For building the user interface.
- React Router: For handling routing in the app.
- CSS/Tailwind: For styling.
- Node.js: For creating the server-side application.
- Express.js: For building RESTful APIs.
- MongoDB: For storing user and blog data.
Follow these steps to set up the project locally:
- Node.js (v16+ recommended)
- MongoDB (Local/Cloud)
- Git
git clone https://github.com/nd5a/Blog-Website-Using-MERN.git
cd Blog-Website-Using-MERN- Navigate to the backend directory:
cd backend - Install dependencies:
npm install
- Create a
.envfile and add the following variables:MONGO_URI=<your-mongodb-connection-string> JWT_SECRET=<your-secret-key> PORT=5000
- Start the backend server:
npm start
- Navigate to the frontend directory:
cd ../frontend - Install dependencies:
npm install
- Start the frontend development server:
npm start
- Open your browser and visit:
http://localhost:3000 - Backend will run on:
http://localhost:5000
Blog-Website-Using-MERN/
│
├── api(backend)/ # Backend API code
│ ├── models/ # Mongoose models
│ ├── routes/ # API routes
│ └── server.js # Main server file
│
├── client(frontend)/ # Frontend React code
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── pages/ # React pages
│ │ └── App.js # Main app file
│
└── README.md # Documentation
We welcome contributions to enhance this project! Here's how you can help:
- Fork this repository.
- Create a new branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add some feature" - Push to the branch:
git push origin feature-name
- Open a Pull Request.
If you like this project, please give it a star ⭐ on GitHub to show your support!
- Adding like and comment functionality for blogs.
- Adding user profile pages.
- Implementing categories and tags for blogs.
- Adding a dark mode feature.
Feel free to reach out if you have any questions or suggestions:
- Email: [email protected]
- GitHub Issues: Open an issue
Enjoy building and exploring! 😊