MERN Blog App is a full-stack web application built using the MERN stack (MongoDB, Express, React, Node.js). It allows users to create, read, update, and delete blog posts. The application is designed to be scalable and easy to use, providing a seamless experience for both developers and end-users.
- User authentication and authorization
- Create, read, update, and delete blog posts
- Responsive design for mobile and desktop
- Rich text editor for creating blog content
- Commenting system for user interaction
- Search functionality to find posts easily
- MongoDB: Database for storing blog posts and user information
- Express: Backend framework for building the API
- React: Frontend library for building the user interface
- Node.js: JavaScript runtime for server-side development
-
Clone the repository:
git clone https://github.com/Rafiqdevhub/MERN_Blog_App.git cd MERN_Blog_App
-
Install server dependencies:
cd server npm install
-
Install client dependencies:
cd ../client npm install
-
Set up environment variables:
Create a
.env
file in theserver
directory and add the following:MONGO_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret
-
Run the application:
-
Start the server:
cd server npm run dev
-
Start the client:
cd ../client npm run dev
-
-
Open your browser:
Visit
http://localhost:5173
to view the application.
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.