{"id":22660939,"url":"https://github.com/kirankumar-matham96/polling-system-api","last_synced_at":"2026-04-14T19:32:32.490Z","repository":{"id":247426891,"uuid":"825790599","full_name":"kirankumar-Matham96/Polling-System-API","owner":"kirankumar-Matham96","description":"An Open API represents a polling system. You can add any question and option to the question. Also can vote the option.","archived":false,"fork":false,"pushed_at":"2024-07-09T10:46:38.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T08:29:45.625Z","etag":null,"topics":["express","mongodb","mongoose","nodejs","restfull-api"],"latest_commit_sha":null,"homepage":"","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/kirankumar-Matham96.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":"2024-07-08T13:58:28.000Z","updated_at":"2024-11-05T00:03:00.000Z","dependencies_parsed_at":"2025-03-29T08:36:05.656Z","dependency_job_id":null,"html_url":"https://github.com/kirankumar-Matham96/Polling-System-API","commit_stats":null,"previous_names":["kirankumar-matham96/polling-system-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kirankumar-Matham96/Polling-System-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirankumar-Matham96%2FPolling-System-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirankumar-Matham96%2FPolling-System-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirankumar-Matham96%2FPolling-System-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirankumar-Matham96%2FPolling-System-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirankumar-Matham96","download_url":"https://codeload.github.com/kirankumar-Matham96/Polling-System-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirankumar-Matham96%2FPolling-System-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31812968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","mongodb","mongoose","nodejs","restfull-api"],"created_at":"2024-12-09T11:12:55.455Z","updated_at":"2026-04-14T19:32:32.484Z","avatar_url":"https://github.com/kirankumar-Matham96.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polling System App (NODE-Repository-REST-API)\n\nAn Open API represents a polling system. You can add any question and option to the question. Also can vote the option.\n\n## Table of Contents\n\n- [Features](#backend-features)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Project Structure](#project-structure)\n- [API Endpoints](#api-endpoints)\n- [Technologies Used](#technologies-used)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- Question\n\n  - Add question\n  - Add option to the question\n  - Get by id\n  - Get all\n  - Update\n  - Delete\n\n- Option\n\n  - Get by id\n  - Get all\n  - Update\n  - Delete\n\n## Prerequisites\n\n- Node.js (\u003e=14.x)\n- npm (\u003e=6.x)\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/kirankumar-Matham96/Polling-System-API.git\n\n   ```\n\n2. Install the dependencies:\n   ```bash\n   npm install\n   ```\n3. Set up environment variables:\n\n- Create a `.env` file in the root directory and add the following:\n  ```bash\n    PORT=3000\n    DB_URL=\u003cdb_url\u003e\n  ```\n\n4. Start the application:\n\n- if dev:\n\n```bash\nnpm run dev\n```\n\n- if production\n\n```bash\n npm run start\n```\n\n5. Open your browser and navigate to `http://localhost:3000`\n\n## Project Structure\n\n    Polling System App/\n    ├── src/\n    │ ├── config/\n    │ │ └── db.config.js\n    │ ├── features/\n    │ │ ├── options/\n    │ │ | ├── option.controller.js\n    │ │ | ├── option.repository.js\n    │ │ | ├── option.routes.js\n    │ │ | └── option.schema.js\n    │ │ └── questions/\n    │ │   ├── question.controller.js\n    │ │   ├── question.repository.js\n    │ │   ├── question.routes.js\n    │ │   └── question.schema.js\n    | └── middlewares/\n    │   ├── errorHandling.middleware.js\n    │   ├── unknownPathHandler.middleware.js\n    │   └── validation.middleware.js\n    ├── .env\n    ├── .gitignore\n    ├── package-lock.json\n    ├── package.json\n    ├── README.md\n    └── server.js\n\n## API Endpoints\n\n### Postman Collection\n\n```bash\n  https://www.postman.com/kirankumar96/workspace/kirankumar-matham-public-workspace/collection/15920123-b701526f-853b-4ba2-93e3-d79b4ddc7666?action=share\u0026creator=15920123\n```\n\n### Question Routes\n\n- `POST /api/polling-system/questions/create`: Create a question\n- `POST /api/polling-system/questions/\u003cquestion_id\u003e/options/create`: Create an option for the question\n- `GET /api/polling-system/questions`: Get all the questions\n- `GET /api/polling-system/questions/\u003cquestion_id\u003e`: Get the question by id\n- `PUT /api/polling-system/questions/\u003cquestion_id\u003e`: Update the question by id\n- `DELETE /api/polling-system/questions/\u003cquestion_id\u003e/delete`: Delete the question by id\n\n### Option Routes\n\n- `GET /api/polling-system/options`: Get all options\n- `GET /api/polling-system/options/\u003coption_id\u003e`: Get the option by id\n- `PUT /api/polling-system/options/\u003coption_id\u003e`: Update option by id\n- `DELETE /api/polling-system/options/\u003coption_id\u003e/delete`: Delete option by id\n\n## Technologies Used\n\n- Node.js\n- Express\n- MongoDB (DataBase)\n- mongoose\n- dotenv\n- cors\n- express-validator\n- REST Full API\n\n## Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository\n2. Create a new branch (`git checkout -b feature/your-feature`)\n3. Commit your changes (`git commit -m 'Add some feature'`)\n4. Push to the branch (`git push origin feature/your-feature`)\n5. Open a pull request\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirankumar-matham96%2Fpolling-system-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirankumar-matham96%2Fpolling-system-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirankumar-matham96%2Fpolling-system-api/lists"}