{"id":21251842,"url":"https://github.com/nawodyaishan/clack-cli-app","last_synced_at":"2025-03-15T05:27:03.742Z","repository":{"id":203570141,"uuid":"709926404","full_name":"nawodyaishan/clack-cli-app","owner":"nawodyaishan","description":"CodeQuiz CLI is a command-line quiz game that tests your knowledge of coding-related questions. It's designed to provide an interactive and entertaining way to learn and test your programming skills.","archived":false,"fork":false,"pushed_at":"2023-10-25T18:30:32.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T22:06:49.939Z","etag":null,"topics":["clack","clack-prompt","cli","command-line-interface","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/nawodyaishan.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}},"created_at":"2023-10-25T17:06:49.000Z","updated_at":"2023-10-25T18:20:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"2db24640-2289-4825-a134-fe98095a2aba","html_url":"https://github.com/nawodyaishan/clack-cli-app","commit_stats":null,"previous_names":["nawodyaishan/clack-cli-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nawodyaishan%2Fclack-cli-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nawodyaishan%2Fclack-cli-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nawodyaishan%2Fclack-cli-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nawodyaishan%2Fclack-cli-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nawodyaishan","download_url":"https://codeload.github.com/nawodyaishan/clack-cli-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243689896,"owners_count":20331725,"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":["clack","clack-prompt","cli","command-line-interface","typescript"],"created_at":"2024-11-21T03:44:59.266Z","updated_at":"2025-03-15T05:27:03.720Z","avatar_url":"https://github.com/nawodyaishan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeQuiz CLI\n\nCodeQuiz CLI is a command-line quiz game that tests your knowledge of coding-related questions. It's designed to provide\nan interactive and entertaining way to learn and test your programming skills.\n\n## Features\n\n### 1. Introduction\n\nThe CodeQuiz CLI app starts with an introduction, displaying a title in a visually appealing manner.\n\n```typescript\nCliHelpers.displayIntro(QUIZ_TITLE);\n```\n\n### 2. Loading Packages\n\nThe app simulates a loading process, complete with a spinner, while packages are loaded in the background.\n\n```typescript\nawait CliHelpers.loadPackages();\n```\n\n### 3. Asking Questions\n\nThe main part of the quiz involves asking a series of questions stored in `questionsData`. Users can answer these\nquestions one by one.\n\n```typescript\nawait CliHelpers.askQuestions();\n```\n\n### 4. Displaying Results\n\nOnce the user answers all the questions, the app displays the user's score and provides feedback.\n\n```typescript\nCliHelpers.displayResult();\n```\n\n### 5. Ready to Play Prompt\n\nThe app asks the user if they are ready to play the quiz and proceeds accordingly based on the user's response.\n\n```typescript\nconst readyToPlay = await p.select({\n    message: \"No cheating. 10 questions. Results at the end. Ready to play?\",\n    // ...\n});\n```\n\n## Usage\n\n1. Clone the repository.\n2. Run the main script: `main()`\n\n## Prerequisites\n\n- Node.js\n- pnpm \n\n## Installation\n\n1. Clone the repository.\n2. Run `pnpm install` to install the required dependencies.\n\n## Getting Started\n\n1. Run the main script to start the quiz game.\n\n```bash\npnpm dev\n```\n\n2. Answer the questions as they appear, and the app will display your score at the end.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnawodyaishan%2Fclack-cli-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnawodyaishan%2Fclack-cli-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnawodyaishan%2Fclack-cli-app/lists"}