This repository contains a RESTful API built with Express.js and MongoDB, designed to serve as the backend for your portfolio website's blog section.
- Express.js: Utilizes Express.js for handling HTTP requests and routing.
- MongoDB: Integrates MongoDB as the database to store and manage blog posts.
- RESTful API: Follows RESTful principles for creating, updating, deleting, and retrieving blog posts.
- Modular Structure: Organized codebase with modular components for scalability and maintainability.
-
Clone the Repository:
git clone https://github.com/HaroonSaifi17/BlogApi.git
-
Install Dependencies:
npm install
-
Set Environment Variables: Create a
.envfile in the root directory and define the following variables:PORT=3000 MONGODB_URI=your_mongodb_uri
-
Run the Server:
npm start
Contributions are welcome! Feel free to submit pull requests or open issues for any suggestions, bug fixes, or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.