{"id":15718078,"url":"https://github.com/choyiny/answer-me","last_synced_at":"2025-05-13T02:14:57.729Z","repository":{"id":72274150,"uuid":"156770626","full_name":"choyiny/answer-me","owner":"choyiny","description":"Real-time Q\u0026A Application with Websockets inspired by Kahoot","archived":false,"fork":false,"pushed_at":"2019-10-17T21:06:40.000Z","size":3673,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T02:14:51.614Z","etag":null,"topics":["docker","flask","kahoot","python","websockets"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/choyiny.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":"2018-11-08T21:22:25.000Z","updated_at":"2024-05-06T14:17:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c301bff-6b68-49ab-8978-5bff4cc6024b","html_url":"https://github.com/choyiny/answer-me","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/choyiny%2Fanswer-me","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choyiny%2Fanswer-me/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choyiny%2Fanswer-me/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choyiny%2Fanswer-me/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choyiny","download_url":"https://codeload.github.com/choyiny/answer-me/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253856666,"owners_count":21974582,"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":["docker","flask","kahoot","python","websockets"],"created_at":"2024-10-03T21:52:04.175Z","updated_at":"2025-05-13T02:14:57.704Z","avatar_url":"https://github.com/choyiny.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Answer me\nReal-time Q\u0026A Application inspired by Kahoot. A discovery project into Python Flask websockets with SocketIO, and an exploration on using technology to host events for student clubs.\n\n\u003cimg src=\"https://github.com/choyiny/answer-me/blob/master/answer/static/images/MC.png\" width=\"300\"\u003e\n\nThis application was used for this event: https://www.facebook.com/events/1127839204040865/\n\n# Development setup\n\n## Setup\n\nNote: This project *requires* Python 3.6+, Docker and Docker Compose installed. For Mac users, ensure you are using the correct version of Python because the OS preinstalls Python 2.7 and default `pip` and `python` commands execute in v2.7 rather than v3.x.\n\nIf you don't have Python 3 installed on your Mac, you can install [Homebrew](https://brew.sh/) and run `brew install python3` on your terminal.\n\n1. Create a virtual environment for the project and activate it. Run `pip3 install virtualenv` if virtualenv is not installed on Python3.6+\n```\n$ virtualenv answer-me-venv --python=/usr/local/bin/python3\n$ source answer-me-venv/bin/activate\n```\n\n2. Clone the repository to your directory\n```\n(answer-me-venv) $ git clone git@github.com:choyiny/answer-me.git\n(answer-me-venv) $ cd answer-me\n```\n\n3. Install the required dependencies\n```\n(answer-me-venv) $ pip install -r answer/requirements.txt\n```\n\n4. Spin up the Dockerized database in postgres.\n```\n(answer-me-venv) $ docker-compose up -d\n```\n\n5. If using PyCharm as the IDE, set the Project Interpreter as the Python from your venv\n    - PyCharm -\u003e Preferences -\u003e Project -\u003e Project Interpreter\n    - Settings (gear icon) -\u003e Add\n    - Select \"Existing Interpreter\"\n    - Look for Python3.x in `answer-me-venv/bin/python3.x`\n\n## How to run locally\n1. Make sure you are in your virtualenv that you setup\n```\n$ source answer-me-venv/bin/activate\n```\n2. Start server\n```\n(answer-me-venv) $ cd answer-me\n(answer-me-venv) $ FLASK_APP=answer.app flask run\n```\n3. You should now able to access the website index.\n```\nhttp://localhost:5000\n```\n\n## Resetting databases\n1. Remove database volumes attached to docker-compose\n```\n$ docker-compose down -v\n```\n2. Restart the database containers to get a fresh database\n```\n$ docker-compose up --build -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoyiny%2Fanswer-me","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoyiny%2Fanswer-me","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoyiny%2Fanswer-me/lists"}