This is a blog website built using the MERN (MongoDB, Express.js, React, Node.js) stack with user authentication. Users can create an account, log in, write, edit, and delete their own blog posts.
- User authentication (register and log in)
- Create, edit, and delete blog posts
- View all posts or individual post details
- Responsive design
-
Clone the repository:
git clone https://github.com/your-username/your-repo-name.git cd your-repo-name/api
-
Install dependencies:
npm install
-
Create a .env file in the api directory and add your environment variables:
MONGO_URI=your_mongodb_uri PORT=5000
-
Start the backend server:
npm start
-
Navigate to the client directory:
cd ../client
-
Install dependencies:
npm install
-
Strat the frontend server:
npm start
The frontend server will start on http://localhost:3000
.
- Open your browser and navigate to http://localhost:3000.
- Register or log in to start using the application.
- Write, edit, and delete your blog posts as desired.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make your changes.
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature-branch).
- Open a pull request.