This backend project demonstrates a RESTful API built using Node.js, Express, and MongoDB/Mongoose, focused on simulating a simple social media application.
- Register and authenticate users using bcrypt and JWT.
- Implement a fully functional CRUD system.
- Enable users to like and unlike posts and comments.
- Deploy the backend to a production environment.
- User registration with password hashing.
- Email verification required before login.
- Login system that returns a JWT upon successful authentication.
- Create, read, update and delete:
- Users
- Posts
- Comments
- Like/unlike comments and posts.
- Upload images via Multer for:
- Posts
- Comments
- User profiles
- Follower system
- MongoDB Atlas (or local MongoDB).
- Create
.envwith the example file provided.
- Clone the repository:
git clone https://github.com/PaulaVegas/Proyecto_RedSocial.git- Install dependencies:
npm install- Run the project:
npm startThis project includes interactive API documentation powered by Swagger UI, allowing you to explore all available endpoints directly from your browser.
With the API running, visit
http://localhost:3000/api-docs- Paula @PaulaVegas
