Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tariq-monowar/social-media-api-express.js
This repository contains the backend code for a social media platform i am built with Express.js. The backend provides APIs for user management, posts, comments, friendships, and notifications.
https://github.com/tariq-monowar/social-media-api-express.js
communify socail-network social-media-backend
Last synced: 7 days ago
JSON representation
This repository contains the backend code for a social media platform i am built with Express.js. The backend provides APIs for user management, posts, comments, friendships, and notifications.
- Host: GitHub
- URL: https://github.com/tariq-monowar/social-media-api-express.js
- Owner: Tariq-Monowar
- Created: 2024-02-19T05:57:40.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-19T14:38:56.000Z (7 months ago)
- Last Synced: 2024-04-19T15:51:19.185Z (7 months ago)
- Topics: communify, socail-network, social-media-backend
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Social Media Backend with Express.js
This repository contains the backend code for a social media platform i am built with Express.js. The backend provides APIs for user management, posts, comments, friendships, and notifications.
## 🔧Features
- **User Management:**
- Create a new user
- Update user profile
- Login user
- Get user profile
- Delete user account- **Posts:**
- Create a new post
- Get all posts
- Get posts from friends
- Get user's posts and posts from friends
- Get a single post
- Update a post
- Delete a post
- Like/Unlike a post- **Friendships:**
- Send friend requests
- Reject friend requests
- Accept friend requests
- Unfriend users
- Get list of friends
- Get friend requests- **Notifications:**
- Get user notifications
- Mark notifications as read
- Delete notifications- **Comments:**
- Create a new comment on a post
- Update a comment
- Delete a comment
## File Structure
- routes: Contains route handlers for different entities (users, posts, comments, notifications, friendships).
- controllers: Implements the logic for route handlers.
- models: Defines Mongoose models for users, posts, notifications, etc.
- app.js: The main application file that sets up Express and connects routes.### env variable
- PORT=****
- DBURL=*******************
- SECRET_KEY=**************
- IMGBB_API_KEY=******************## 📦Getting Started
1. Clone the repository:```bash
git clone https://github.com/Tariq-Monowa/express-social-media-backend.git