This is a simple blog application built using the MERN stack.
- Users can view a list of blog posts.
- Users can read individual blog posts.
- Users can create new blog posts.
- Users can update or delete existing blog posts.
- MongoDB: A NoSQL database for storing blog post data.
- Express.js: A Node.js web application framework for building the backend.
- React.js: A JavaScript library for building user interfaces.
- Node.js: A JavaScript runtime for building server-side applications.
- Axios: A promise-based HTTP client for making requests to the backend API.
- React Router: A library for declarative routing in React applications.
To run this application locally, follow these steps:
- Clone this repository.
- Navigate to the
backend
directory and runnpm install
to install backend dependencies. - Navigate to the
frontend
directory and runnpm install
to install frontend dependencies. - Start the backend server by running
npm start
in thebackend
directory. - Start the frontend development server by running
npm start
in thefrontend
directory. - Open your browser and navigate to
http://localhost:3000
to view the application.
api
: Contains the backend code.client
: Contains the frontend code.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork this repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a new Pull Request.
This project is licensed under the MIT LICENSE.