{"id":29874646,"url":"https://github.com/saba-burduli/real-time-quiz-poll-api","last_synced_at":"2026-05-07T00:39:03.652Z","repository":{"id":299594000,"uuid":"1003532117","full_name":"Saba-Burduli/Real-time-Quiz-Poll-API","owner":"Saba-Burduli","description":"A powerful, scalable Quiz \u0026 Poll backend API built with ASP.NET 9, leveraging CQRS, SignalR, Redis, PostgreSQL, and Docker. This project supports anonymous and authenticated voting, real-time updates, analytics, and response exports.","archived":false,"fork":false,"pushed_at":"2025-07-25T17:56:43.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-26T00:18:20.342Z","etag":null,"topics":["asp-net-core","cqrs","csv","csv-parser","dotnet","enityframework","gdrs","mediar","redis"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Saba-Burduli.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,"zenodo":null}},"created_at":"2025-06-17T09:37:52.000Z","updated_at":"2025-07-25T17:56:47.000Z","dependencies_parsed_at":"2025-06-17T10:40:38.221Z","dependency_job_id":"1d9c0b4a-c52a-41cf-839d-f15967f355b8","html_url":"https://github.com/Saba-Burduli/Real-time-Quiz-Poll-API","commit_stats":null,"previous_names":["saba-burduli/real-time-quiz-poll-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Saba-Burduli/Real-time-Quiz-Poll-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saba-Burduli%2FReal-time-Quiz-Poll-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saba-Burduli%2FReal-time-Quiz-Poll-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saba-Burduli%2FReal-time-Quiz-Poll-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saba-Burduli%2FReal-time-Quiz-Poll-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saba-Burduli","download_url":"https://codeload.github.com/Saba-Burduli/Real-time-Quiz-Poll-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saba-Burduli%2FReal-time-Quiz-Poll-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267968150,"owners_count":24173632,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["asp-net-core","cqrs","csv","csv-parser","dotnet","enityframework","gdrs","mediar","redis"],"created_at":"2025-07-31T00:44:38.847Z","updated_at":"2026-05-07T00:39:03.646Z","avatar_url":"https://github.com/Saba-Burduli.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Quiz/Poll Real-Time API\n\nA powerful, scalable Quiz \u0026 Poll backend API built with **ASP.NET 9**, leveraging **CQRS**, **SignalR**, **Redis**, **PostgreSQL**, and **Docker**. This project supports anonymous and authenticated voting, real-time updates, analytics, and response exports.\n\n---\n\n##  Features\n\n###  Core Functionalities\n\n* Create quizzes with multiple question types (single/multiple choice, rating, text, image-based)\n* Public or private quizzes (via code)\n* Real-time results \u0026 participation updates using SignalR\n* Anonymous \u0026 authenticated voting\n* IP-based duplicate prevention \u0026 rate limiting\n* Export results in **CSV** or JSON\n\n###  Analytics\n\n* Real-time voting stats\n* Per-question statistics\n* Demographics support (future-ready)\n* Response heatmaps (future-ready)\n\n###  Tech Stack\n\n* **.NET 9** Web API\n* **PostgreSQL** – main database\n* **Redis** – for caching, rate-limiting, and SignalR pub/sub\n* **SignalR** – real-time updates\n* **Docker** + Docker Compose – containerization\n* **Serilog** – structured logging\n* **MediatR** – CQRS implementation\n* **CSV Exporting** – via built-in service\n\n---\n\n##  Patterns Used\n\n### CQRS (via MediatR)\n\n* Command \u0026 Query handlers for write/read separation\n* Better scaling and testing support\n\n###  GDRS (Generic Data Request Separation)\n\n* Reusable interfaces for `ICommand`, `IQuery`, and `IEventPublisher`\n* Promotes loosely coupled design\n\n---\n\n##  Configuration\n\n### PostgreSQL (default)\n\n```\nConnectionString: Host=localhost;Port=5432;Database=quizdb;Username=postgres;Password=password\n```\n\n### Redis\n\n```\nRedis:ConnectionString=localhost:6379\n```\n\n---\n\n##  Running via Docker\n\n```bash\ndocker-compose up --build\n```\n\nApp available at: `http://localhost:5000`\n\nSwagger UI: `http://localhost:5000/swagger`\n\n---\n\n##  Logging with Serilog\n\n* Output to console with timestamps, log levels, structured messages\n* Extendable to file, Seq, or ElasticSearch\n\n---\n\n## CSV Export\n\n* Export quiz results with headers, answers, timestamps\n* Formats: `CSV`, `JSON`\n\n---\n\n##  Author\n\nMade by Saba Burduli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaba-burduli%2Freal-time-quiz-poll-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaba-burduli%2Freal-time-quiz-poll-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaba-burduli%2Freal-time-quiz-poll-api/lists"}