This project is a RESTful API built with Node.js, Express, and MongoDB using Mongoose. It provides endpoints for managing posts, comments, and user authentication.
- Posts: CRUD operations for posts, including pagination, likes, and comments.
- Comments: Add comments to posts.
- Users: User registration, login/logout using bcrypt and JWT.
- Authentication: Middleware for verifying post ownership during edit/delete operations.
- Node.js
- Express
- MongoDB (Mongoose)
- bcrypt (password hashing)
- JSON Web Tokens (JWT)