Like and Dislike API development using Node JS | Express JS | MongoDB

Published At: 1 year ago
Published By: Santosh Kumar
Downloads: 0
Watch Video
node js express js mongodb

This Node.js project implements an API for liking and disliking posts, designed to interact with a database containing user and post data. The API allows users to create posts and express their preferences for those posts by either liking or disliking them.

1. Key features of the project:

1. Checking the validity of user and post IDs.

2. Prevent duplicate likes or dislikes by the same user, and update post likes and dislikes counts accordingly.

3. API provides a robust and efficient way for users to interact with posts.

2. Steps to set up the project:

a) Installation process:

1. Install node js if you haven’t installed it.

2. Install required node packages - express, mongoose, body-parser, nodemon

a) Start project server :

1. Run the server by using the command npm start