This project is a simple blog application built using Node.js and Express.js, allowing users to create, read, update, and delete blog posts.
To get started with the project, follow these steps:
- Clone the repository:
git clone https://github.com/Athin789/Blog-Management-API.git
- Navigate to the project directory:
cd Blog-Management-API
- Install dependencies:
npm install
- Start the server:
npm start
- Open your web browser and navigate to:
http://localhost:3000
Once the server is up and running, you can use the provided API endpoints to interact with the blog application. You can use tools like Postman or curl
to make API requests.
The following API endpoints are available:
GET /posts
: Get a list of all blog posts.GET /posts/:id
: Get a specific blog post by its ID.POST /posts
: Create a new blog post.PUT /posts/:id
: Update an existing blog post.DELETE /posts/:id
: Delete a blog post.
For more details on how to use each endpoint, refer to the API documentation.
The project has the following main dependencies:
- Express.js: A web application framework for Node.js.
- Other dependencies: Check the
package.json
file for the complete list.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Description of changes"
- Push your changes to your fork:
git push origin feature-name
- Submit a pull request to the main repository.
This project is licensed under the ISC License.