{"id":21448407,"url":"https://github.com/julianlk522/trivia-game","last_synced_at":"2026-04-13T10:32:13.714Z","repository":{"id":206737497,"uuid":"559983269","full_name":"julianlk522/trivia-game","owner":"julianlk522","description":"Small trivia game powered by containerized LAMP stack","archived":false,"fork":false,"pushed_at":"2022-11-25T02:28:57.000Z","size":122,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T02:11:16.634Z","etag":null,"topics":["apache","docker","docker-compose","mysql","php","trivia"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/julianlk522.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":"2022-10-31T14:01:59.000Z","updated_at":"2024-02-22T22:24:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"41c57f8a-032f-4efb-ae83-24fc2988ba4a","html_url":"https://github.com/julianlk522/trivia-game","commit_stats":null,"previous_names":["julianlk522/trivia-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/julianlk522/trivia-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianlk522%2Ftrivia-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianlk522%2Ftrivia-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianlk522%2Ftrivia-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianlk522%2Ftrivia-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julianlk522","download_url":"https://codeload.github.com/julianlk522/trivia-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianlk522%2Ftrivia-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31749030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["apache","docker","docker-compose","mysql","php","trivia"],"created_at":"2024-11-23T03:15:18.434Z","updated_at":"2026-04-13T10:32:13.694Z","avatar_url":"https://github.com/julianlk522.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LAMP Stack Trivia Game\n\nA big thanks goes to **https://the-trivia-api.com/** who provide the API making this project possible!\n\nProject styling was bootstrapped using the [**PicoCSS Framework**](https://picocss.com/ 'PicoCSS landing page').\n\n## Description\n\n\u003cbr\u003e\n\n🤔 Users are prompted to answer questions that increase in difficulty with subsequent successful answers.\n\n📊 The amount of correct guesses (score) will be tallied by user and displayed in the leaderboards for others to see.\n\n❌ Three strikes and you're out! After your third incorrect guess you will not be able to continue making attempts until the next day.\n\n\u003cbr\u003e\n\n## Getting Started\n\n\u003cbr\u003e\n\n🔐 When you start the app you will have the option to create a new account with a _name_, _username_ and _password_.\n\n-   This will allow you to store your scores so that they can appear on the daily score leaderboards along with your chosen _name_.\n\n\u003cdiv align='center' style=\"margin: 1rem 0\"\u003e\u003cimg src='readme/signup.webp' alt='Auth screen' width='300' /\u003e\u003c/div\u003e\n\n✈️ From the _signup_ page you can also navigate directly to the daily _leaderboards_ page, or the _sign-in_ page if you have already created an account.\n\n🔢 After signing up or signing in you will be shown the number of remaining guesses for your account that day.\n\n-   This way if you leave mid-game and come back later, you will be reminded of your progress before jumping back in.\n\n\u003cdiv align='center' style=\"margin: 1rem 0\"\u003e\u003cimg src='readme/ready.webp' alt='Auth screen' width='300' /\u003e\u003c/div\u003e\n\n▶️ Clicking the **Begin** button will direct you the _questions_ page from which you can start to answer question prompts.\n\n\u003cbr /\u003e\n\n## Questions\n\n\u003cbr /\u003e\n\n\u003cdiv align='center' style=\"margin: 1rem 0\"\u003e\u003cimg src='readme/question.webp' alt='Auth screen' width='300' /\u003e\u003c/div\u003e\n\n❔ From the _questions_ page you will be able to see your current question number, the current question difficulty, and how many incorrect guesses you have remaining before the game is over.\n\n\u003cdiv align='center' style=\"margin: 1rem 0\"\u003e\u003cimg src='readme/progressBar.webp' alt='Auth screen' width='300' /\u003e\u003c/div\u003e\n\n👆 All questions are multiple choice and you can select your desired answer by clicking the dropdown menu below the prompt and choosing an option.\n\n\u003cdiv align='center' style=\"margin: 1rem 0\"\u003e\u003cimg src='readme/questionAnswer.webp' alt='Auth screen' width='300' /\u003e\u003c/div\u003e\n\n💯 When you select an option and click the **Submit** button, you will receive a status message above your next question prompt indicating whether you chose correctly or not.\n\n\u003cdiv align='center' style=\"margin: 1rem 0\"\u003e\u003cimg src='readme/correctResponse.webp' alt='Auth screen' width='300' /\u003e\u003c/div\u003e\n\n🧗 Surpassing question **five** will increase difficulty of following questions to _medium_ and surpassing question **ten** will increase difficulty to _hard_.\n\n\u003cdiv align='center' style=\"margin: 1rem 0\"\u003e\u003cimg src='readme/difficultyIncrease.webp' alt='Auth screen' width='300' /\u003e\u003c/div\u003e\n\n🔚 When you answer a question incorrectly for the third time, you will be redirected the _game over_ page where your total score will be displayed.\n\n\u003cdiv align='center' style=\"margin: 1rem 0\"\u003e\u003cimg src='readme/gameOver.webp' alt='Auth screen' width='300' /\u003e\u003c/div\u003e\n\n🏆 From here you can navigate to the _leaderboards_ page to see how your scores compared to those of your competitors.\n\n\u003cdiv align='center' style=\"margin: 1rem 0\"\u003e\u003cimg src='readme/leaderboards.webp' alt='Auth screen' width='300' /\u003e\u003c/div\u003e\n\n## Running the Game\n\n\u003cbr /\u003e\n\nThe Trivia Game currently requires **Docker** to run. If Docker is installed, you can run the app with Compose by entering the following command from the project root directory:\n\n```\ndocker-compose up\n```\n\nThis will build and start the preconfigured images for the Apache server, MySQL database and phpMyAdmin interface.\n\nThe Apache server will run on port 80. You can then access the _sign-in_ screen and begin playing the game by navigating to **http://localhost/signin.php**\n\nWhen you're done using the Trivia Game, run the following command from the project root directory to remove the Docker containers being used for the app:\n\n```\ndocker-compose down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianlk522%2Ftrivia-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulianlk522%2Ftrivia-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianlk522%2Ftrivia-game/lists"}