Giter VIP home page Giter VIP logo

pollingapi's Introduction

pollingAPI

node based polling-API which can be used for the Question and answer based polling result like Quiz App.

DEPENDENCY

  1. "dotenv": "^8.2.0",
  2. "express": "^4.17.1",
  3. "mongoose": "^5.9.10",
  4. "populate": "^5.0.1",
  5. "nodemon"

PROJECT SETUP

Note:- npm should be there in your System

Steps:-

  1. clone the repository
  2. cd pollingAPI
  3. npm install
  4. npm install // if not nodemon there, than please install:- npm install nodemon
  5. npm start

API ROUTES

  1. /questions/create -> To create a question
  2. /questions/:id/options/create -> To add options to a question
  3. /questions/:id/delete -> To delete a question
  4. /options/:id/delete -> To delete an option
  5. /options/:id/add_vote -> To increment the count of votes
  6. /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....

pollingapi's People

Contributors

viratsoam avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

thescodes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.