The project is the backend of a social media platform. The APIs support features like getting a user profile, follow a user, upload a post, delete a post, like a post, unlike a liked post, and comment on a post.
- Authenticate a user
- Follow a user
- Unfollow a user
- Create a post
- Delete a post
- Add comment to a post
- Like a post
- Unlike a post
To run this project, you will need to add the following environment variables to your .env file
MONGO_URI
JWT_SECRET
BASE_URL - Base url of where the backend is hosted
SAMPLE_TOKEN - JWT token for authenticated users
Clone the project
git clone https://github.com/abhay2002-pro/reunion_assignment.gitGo to the project directory
cd reunion_assignmentInstall dependencies
npm installStart the server
npm run startClone the project
git clone https://github.com/abhay2002-pro/reunion_assignment.gitGo to the project directory
cd reunion_assignmentRun the application
docker compose upServer: Node, Express
Database: Mongo DB
Tests: Chai and Mocha