{"id":13565703,"url":"https://github.com/pilotpirxie/quiz-system","last_synced_at":"2026-05-13T06:04:13.405Z","repository":{"id":42876648,"uuid":"256970001","full_name":"pilotpirxie/quiz-system","owner":"pilotpirxie","description":"❓ Simple quiz widget for websites build with the React. Could be append as a part of existing website or run as an external application. ","archived":false,"fork":false,"pushed_at":"2023-01-06T03:46:44.000Z","size":4436,"stargazers_count":2,"open_issues_count":25,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T08:21:58.934Z","etag":null,"topics":[],"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/pilotpirxie.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}},"created_at":"2020-04-19T10:20:24.000Z","updated_at":"2024-05-13T08:30:36.000Z","dependencies_parsed_at":"2023-02-05T06:01:42.560Z","dependency_job_id":null,"html_url":"https://github.com/pilotpirxie/quiz-system","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/pilotpirxie%2Fquiz-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotpirxie%2Fquiz-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotpirxie%2Fquiz-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotpirxie%2Fquiz-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilotpirxie","download_url":"https://codeload.github.com/pilotpirxie/quiz-system/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241396776,"owners_count":19956408,"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":[],"created_at":"2024-08-01T13:01:53.543Z","updated_at":"2026-05-13T06:04:13.354Z","avatar_url":"https://github.com/pilotpirxie.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# quiz-system\nSimple quiz widget for websites build with the React. Could be append as a part of existing website or run as an external application. Supports two types of the question:\n* ``choice`` from multiple option,\n* check if user ``response`` is correct. \n\n### How to use?\nDevelopment and deployment is very easy. Just follow instruction:\n```bash\n# clone with git\ngit clone\n\n# open quiz directory\ncd quiz\n\n# install dependencies\nyarn\n\n# run dev server in cra directory\nyarn start\n\n# to deploy, use cra or babel\nyarn build \n\n# or with babel, copy index.js to quiz-babel/src/quiz-system.js without imports, \n# install dependencies like with cra and then call\nyarn yarn\n```\n\n### How to use on website?\n* Append script on the end of the body\n* Call ``Quiz.render()`` method with configuration object\n\n### Sample configuration\n```js\nwindow.Quiz.render({\n  appendId: 'quiz', // id of DOM element to render react app\n  questions: [{ // array with questions\n    type: 'choice', // type of question, one of: choice, response\n    title: 'Question #1?', // question title\n    answers: [ // array with answers, only for choice type of question\n      'Answer #1',\n      'Answer #2',\n      'Answer #3',\n      'Answer #4',\n    ],\n    correctAnswer: 1, // index of correct answer for choice type of question, otherwise valid answer, case insensitive  \n    hint: 'Here hint', // hint to display when user click on the left button\n  }, {\n    type: 'choice',\n    title: 'Question #2?',\n    answers: [\n      'Answer #1',\n      'Answer #2',\n    ],\n    correctAnswer: 0,\n    hint: 'Here hint',\n  }, {\n    type: 'response',\n    title: 'Open question #3?',\n    correctAnswer: 'correct answer',\n    hint: 'Here hint',\n  }]\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotpirxie%2Fquiz-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilotpirxie%2Fquiz-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotpirxie%2Fquiz-system/lists"}