Backend files for Rate-It Frontend
The Backend Website for API calls is hosted Here
The Frontend Files can be found at Rate-It-Project
Full-Stack Project is hosted at Here
The Postman Documentation can be found Here
-
/browse/leaderboard
It scans the database and an array containing the movieID and the votes casted to that movie in decreasing order is returned.
-
/browse/list?email=<email>
The array of movies nominated by the user with the passed email is returned.
-
/browse/find?email=<email>&id=<movieID>
Returns a boolean value true if the movie is nominated by the passed user or false if the movie isn't nominated by the user.
-
/browse/remove?idu=<email>&idm=<movieID>
Deletes the tuple which has the passed email and movieID.
-
/browse/add?userID=<email>movieID=<movieID>
Pushes the values of movieID and userID into the database.
- Clone the repo
git clone https://github.com/savi-1311/Rate-It-Backend
- Install NPM packages
npm install
- Create a .env file using the template .env.template and add values accordingly.
- To run the server
npm start
Thanks goes to these wonderful people (emoji key):
Shambhavi 💻 |
Somya S. Singh 🎨 |
This project follows the all-contributors specification. Contributions of any kind welcome!