{"id":27058488,"url":"https://github.com/definetlynotai/roulette","last_synced_at":"2025-04-09T19:22:46.037Z","repository":{"id":286110685,"uuid":"960391319","full_name":"DefinetlyNotAI/Roulette","owner":"DefinetlyNotAI","description":"Easy and quick to setup Roulette system with weights","archived":false,"fork":false,"pushed_at":"2025-04-04T11:28:41.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T12:25:05.319Z","etag":null,"topics":["basic","css","dark-theme","design","flask","python","roulette","website"],"latest_commit_sha":null,"homepage":"https://roulette-csv.vercel.app","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/DefinetlyNotAI.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":"2025-04-04T11:00:16.000Z","updated_at":"2025-04-04T11:30:33.000Z","dependencies_parsed_at":"2025-04-04T12:35:13.243Z","dependency_job_id":null,"html_url":"https://github.com/DefinetlyNotAI/Roulette","commit_stats":null,"previous_names":["definetlynotai/roulette"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefinetlyNotAI%2FRoulette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefinetlyNotAI%2FRoulette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefinetlyNotAI%2FRoulette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefinetlyNotAI%2FRoulette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DefinetlyNotAI","download_url":"https://codeload.github.com/DefinetlyNotAI/Roulette/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248095645,"owners_count":21046890,"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":["basic","css","dark-theme","design","flask","python","roulette","website"],"created_at":"2025-04-05T12:15:23.960Z","updated_at":"2025-04-09T19:22:46.014Z","avatar_url":"https://github.com/DefinetlyNotAI.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roulette Wheel\n\n## Spin The Wheel Application\n\nThis is a web application that allows users to spin a wheel to randomly select a winner based on weighted entries.\n\n### Features\n\n- **Spin the Wheel**: A visual representation of a wheel that spins to select a winner.\n- **Dark Mode Support**: The application supports dark mode based on the user's system preferences.\n- **Loading Animation**: A loading animation is displayed while fetching data.\n- **SweetAlert2 Integration**: Custom alerts are shown to announce the winner.\n\n### Technologies Used\n\n- **Python**: Backend logic using Flask.\n- **JavaScript**: Frontend logic for spinning the wheel.\n- **HTML/CSS**: Structure and styling of the web page.\n- **Chart.js**: For rendering the wheel.\n- **SweetAlert2**: For custom alert messages.\n\n### Setup Instructions\n\n1. **Clone the repository**:\n    ```sh\n    git clone https://github.com/DefinetlyNotAI/Roulette\n    cd Roulette\n    ```\n\n2. **Install dependencies**:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n3. **Create a CSV file**:\n   Create a file named `data.csv` in the root directory with the following structure:\n    ```csv\n    Name,Weight\n    Alice,10\n    Bob,20\n    Charlie,30\n    ```\n\n4. **Run the application**:\n    ```sh\n    python app.py\n    ```\n\n5. **Open the application**:\n   Open your web browser and navigate to `http://127.0.0.1:5000/`.\n\n### Example CSV File\n\nCreate a file named `data.csv` with the following content:\n\n```csv\nName,Weight\nAlice,10\nBob,20\nCharlie,30\n```\n\nThis CSV file contains the names of participants and their corresponding weight, which determine their chances of\nwinning when the wheel is spun.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefinetlynotai%2Froulette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefinetlynotai%2Froulette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefinetlynotai%2Froulette/lists"}