node based polling-API which can be used for the Question and answer based polling result like Quiz App.
- "dotenv": "^8.2.0",
- "express": "^4.17.1",
- "mongoose": "^5.9.10",
- "populate": "^5.0.1",
- "nodemon"
Note:- npm should be there in your System
Steps:-
- clone the repository
- cd pollingAPI
- npm install
- npm install // if not nodemon there, than please install:- npm install nodemon
- npm start
- /questions/create -> To create a question
- /questions/:id/options/create -> To add options to a question
- /questions/:id/delete -> To delete a question
- /options/:id/delete -> To delete an option
- /options/:id/add_vote -> To increment the count of votes
- /questions/:id -> To view a question and it's options
Important Note:- There can be any bug, I'm working on it for more improvements and to make it secure.
#WORK IN PROGRESS....