This is a RESTful API for a blogging platform. It allows users to create, read, update, and delete blog posts. Users can also like and unlike posts, and add, delete, like, and unlike comments.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js
- npm
- MongoDB
- Clone the repository:
git clone https://github.com/yourusername/blog-api.git
- Install the dependencies:
npm install
- Create a
.env
file in the root directory of the project and add the following environment variables:
PORT=3000
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
- Start the server:
npm start
- Express - The web framework used
- Mongoose - Object Data Modeling (ODM) library for MongoDB and Node.js
- Passport - Authentication middleware for Node.js
- jsonwebtoken - Implementation of JSON Web Tokens
- bcryptjs - Library to hash and check passwords
This project is licensed under the ISC License.