https://github.com/barcodehub/content-request-node
https://github.com/barcodehub/content-request-node
comment-system likes request-handler social-media social-network
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/barcodehub/content-request-node
- Owner: Barcodehub
- Created: 2024-07-30T00:55:03.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-30T19:19:48.000Z (9 months ago)
- Last Synced: 2025-02-11T15:53:30.598Z (2 months ago)
- Topics: comment-system, likes, request-handler, social-media, social-network
- Language: JavaScript
- Homepage:
- Size: 3.24 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Social Network Backend
## Description
This project is a robust backend for a social network, developed with Node.js and Express. It provides a RESTful API supporting functionalities such as user registration, authentication, posts, comments, likes, friend requests, and more.## Características
- User registration and login with JWT
- Create, read, update, and delete posts
- Comment system for posts
- Like functionality for posts and comments
- Friend request system
- User search
- Privacy control for posts
- Personalized news feed## Tecnologías Utilizadas
- Node.js
- Express.js
- MongoDB with Mongoose
- JSON Web Tokens (JWT) for authentication
- bcrypt.js for password hashing# Set up environment variables:
- Create a `.env` file in the root directory
- Add the following variables:
```
PORT=3000
MONGODB_URI=mongodb://localhost:27017/chatapp
JWT_SECRET=your_jwt_secret
```
- Adjust the values according to your setup# Iniciar el servidor:
`npm run dev`# API Usage:
You can view or download the API test file [here](pruebas-api.pdf).