{"id":16236551,"url":"https://github.com/anuraghazra/quickerpoll","last_synced_at":"2025-03-19T15:30:59.088Z","repository":{"id":39558224,"uuid":"172079748","full_name":"anuraghazra/QuickerPoll","owner":"anuraghazra","description":"QuickerPoll is a crowd-sourced real-time polling app created with React and Nodejs.","archived":false,"fork":false,"pushed_at":"2023-08-22T14:58:38.000Z","size":4048,"stargazers_count":27,"open_issues_count":34,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T08:45:09.824Z","etag":null,"topics":["express","mlab","mongo","nodejs","react","rest","rest-api"],"latest_commit_sha":null,"homepage":"https://quickerpoll.herokuapp.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anuraghazra.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-22T14:26:49.000Z","updated_at":"2025-03-01T15:45:53.000Z","dependencies_parsed_at":"2024-10-27T20:58:36.578Z","dependency_job_id":"607c3d3a-d26f-437e-bbcd-a66862fa2e32","html_url":"https://github.com/anuraghazra/QuickerPoll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuraghazra%2FQuickerPoll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuraghazra%2FQuickerPoll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuraghazra%2FQuickerPoll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuraghazra%2FQuickerPoll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anuraghazra","download_url":"https://codeload.github.com/anuraghazra/QuickerPoll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244453805,"owners_count":20455281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","mlab","mongo","nodejs","react","rest","rest-api"],"created_at":"2024-10-10T13:31:40.809Z","updated_at":"2025-03-19T15:30:58.745Z","avatar_url":"https://github.com/anuraghazra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QuickerPoll\nQuickerPoll is a crowd-sourced real-time polling app created with React and Nodejs. QuickerPoll lets you create edit, update, delete public polls and vote on them publicly. This project is just an example of using react, nodejs and restfull apis all together\n\n\n*NOTE : please do not create any violating contents here as is this database is publicly visible and i'm not responsibe for any violating content*\n\n\n## API Endpoints: \n\n### GET - GET POLLS\n```js\n// GET ALL POLLS\n/api/polls -\u003e \n[\n  {\n    name: String,\n    votes: [Object],\n    _id: String,\n    request: {\n      type: 'GET',\n      url: `/api/polls/${_id}`\n    }\n  }\n]\n\n// GET SINGLE POLL\n/api/polls/:poll_id -\u003e \n{\n  name: String,\n  votes: [Object],\n  _id: String,\n  request: {\n    type: 'GET',\n    url:  `/api/polls/`\n  }\n}\n```\n\n\n### POST - CREATE POLLS\n```js\n// PAYLOAD TO SEND\npayload = {\n  name: String,\n  votes: [\n    {\n      name : String,\n      value: Number,\n      color: String\n    }\n  ]\n}\n\n/api/polls -\u003e \n{\n  name: String,\n  votes: [Object],\n  request: {\n    type: 'GET',\n    url: `/api/polls/_id`\n  }\n}\n\n\n\n```\n\n### PATCH - UPDATE POLLS\n```js\n// PAYLOAD TO SEND\npayload = [\n  {\"propName\" : \"name\", \"value\" : \"new name\"},\n  {\"propName\" : \"votes.0.value\", \"value\" : \"80\"},\n  ...\n]\n\n/api/polls/:poll_id -\u003e\n{\n  message: 'Poll has been updated!',\n  request: {\n    type: 'GET',\n    url: `/api/polls/_id`\n  }\n}\n```\n\n\n### PATCH - VOTE POLLS\n```js\n// PAYLOAD TO SEND\npayload = vote_id : String\n\n/api/polls/cast/:poll_id -\u003e\n{\n  name: String,\n  votes: [Object],\n  _id: String,\n  message: 'Thanks for voting!',\n  request: {\n    type: 'GET',\n    url: `/api/polls/_id`\n  }\n}\n```\n\n### DELETE - DELETE POLL\n```js\n/api/polls/:poll_id -\u003e\n{\n  message: 'Successfully deleted the poll',\n  request: {\n    type: 'GET',\n    url: `/api/polls`\n  }\n}\n```\n\n## Get Started\n\nClone the repo to your local machine\n```bash\ngit clone https://github.com/anuraghazra/QuickerPoll.git\n``` \n\nInstall all the dependencies\n```bash\nnpm install\n``` \n\nStart the application on localhost:3000\n```bash\nnpm run dev\n``` \n\n\n### NPM Commands\nstart the application\n```bash\nnpm run dev\n``` \n\nstart the backend server\n```bash\nnpm start\n```\n\nwatch for changes in server\n```bash\nnpm run watch-server\n```\n\nin the ./clients folder to build react front-end type\n```bash\nnpm run build\n```\n\n\n## Tools Used\n\n* [React](https://reactjs.org)\n* [AntDesign](https://ant.design)\n* [Nodejs](https://nodejs.org/)\n* [Heroku](https://heroku.com/)\n* [Express](https://expressjs.com/)\n* [Axios](https://github.com/axios/axios)\n* [Mongoosejs](https://mongoosejs.com/)\n* [mLab](https://mlab.com/)\n\nMade with :heart: and javascript","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuraghazra%2Fquickerpoll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanuraghazra%2Fquickerpoll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuraghazra%2Fquickerpoll/lists"}