Skip to content

PaulaVegas/Proyecto_RedSocial

Repository files navigation

banner Node.js Express MongoDB Mongoose

Made with JavaScript Visual Studio Code

Social Network API

This backend project demonstrates a RESTful API built using Node.js, Express, and MongoDB/Mongoose, focused on simulating a simple social media application.


Objectives

  • 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.

🛠️ Tech Stack

Features

Authentication & Security

  • User registration with password hashing.
  • Email verification required before login.
  • Login system that returns a JWT upon successful authentication.

Endpoints

  • Create, read, update and delete:
    • Users
    • Posts
    • Comments
  • Like/unlike comments and posts.
  • Upload images via Multer for:
    • Posts
    • Comments
    • User profiles
  • Follower system

Requirements

  • MongoDB Atlas (or local MongoDB).
  • Create .env with the example file provided.

🚀 Getting started

  1. Clone the repository:
git clone https://github.com/PaulaVegas/Proyecto_RedSocial.git
  1. Install dependencies:
npm install
  1. Run the project:
npm start

API Documentation

Swagger

This project includes interactive API documentation powered by Swagger UI, allowing you to explore all available endpoints directly from your browser.

Access

With the API running, visit

http://localhost:3000/api-docs

Credits

About

Proyecto final sprint backend

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors