You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains a fully functional Social Media REST API built with Node.js, Express.js, and MongoDB. It supports core social media functionalities, from basic CRUD operations to advanced features like user authentication, story uploads, messaging, and more.
Features
User Authentication: Secure user login/signup using JWT.
CRUD Operations: Create, Read, Update, and Delete posts, comments, and other entities.
Image & Story Uploads: Users can upload images and stories with file handling.
Messaging System: Real-time messaging functionality for user interaction.
Likes & Comments: Like and comment on posts seamlessly.
Blocking Functionality: Block/unblock users to maintain user privacy.
Secure Routes: Token-based authentication for protected API routes.
Technologies Used
Backend: Node.js, Express.js
Database: MongoDB (NoSQL)
Authentication: JSON Web Tokens (JWT)
File Handling: Multer
Other Tools: dotenv, bcrypt, and more.
Setup and Installation
Clone the Repository
git clone https://github.com/yourusername/social-media-rest-api.git
cd social-media-rest-api
Setup and Installation
Install Dependencies
npm install
Set Up Environment Variables
Create a .env file in the root directory and configure the following: