- Login User ✔✔✔
- Get User Profile ✔
- Create A post ✔✔✔
- Delete A post ✔✔✔
- Get a post ✔✔✔
- Get all post ✔✔✔
- Create comment ✔✔✔
- Like a post ✔✔✔
- Unlike a post ✔✔✔
- Follow a post ✔✔✔
- Unfollow a post ✔✔✔
- Docker must be installed on your system.
Steps:
- Clone the Repository:
Clone this repository to your local machine:
git clone https://github.com/Kr-Upendra/social-media-backend.git
cd your-app
- Build the Docker Image:
Use the provided Dockerfile to build the Docker image:
docker build -t social-media-backend .
- Run the Docker Container:
Start a Docker container using the built image:
docker run -p 3000:3000 -d social-media-backend
- Access App:
App should be started at port 3000 in a bit second.
http://localhost:3000
Node.js and npm: Make sure you have Node.js and npm installed. You can download them from nodejs.org.
- Clone the repository:
git clone https://github.com/Kr-Upendra/social-media-backend.git
- Navigate to the project directory:
cd social-media-backend
- Install dependencies:
npm install
- Start the server of both:
npm start