{"id":20275875,"url":"https://github.com/mdevolde/snake","last_synced_at":"2025-03-04T01:30:32.552Z","repository":{"id":233361524,"uuid":"589325361","full_name":"mdevolde/snake","owner":"mdevolde","description":"The snake game, in a web app.","archived":false,"fork":false,"pushed_at":"2024-08-25T08:35:10.000Z","size":578,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T06:30:06.899Z","etag":null,"topics":["game","rust","snake","webassembly"],"latest_commit_sha":null,"homepage":"https://snake.e-kot.be","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdevolde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-15T20:02:01.000Z","updated_at":"2024-09-07T16:34:13.000Z","dependencies_parsed_at":"2024-11-14T13:11:37.764Z","dependency_job_id":"fd7d6793-2d8e-43d9-bc43-d9087c96905d","html_url":"https://github.com/mdevolde/snake","commit_stats":null,"previous_names":["mdevolde/snake"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdevolde%2Fsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdevolde%2Fsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdevolde%2Fsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdevolde%2Fsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdevolde","download_url":"https://codeload.github.com/mdevolde/snake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241767776,"owners_count":20017045,"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":["game","rust","snake","webassembly"],"created_at":"2024-11-14T13:11:33.644Z","updated_at":"2025-03-04T01:30:32.520Z","avatar_url":"https://github.com/mdevolde.png","language":"Rust","readme":"# Snake\n\nThis is a simple snake game written in rust using wasm.\n\n## How to play\n\nUse the arrow keys to move the snake around the screen. The snake will grow when it eats the food. The game ends when the snake collides with the walls or itself.\n\n## How to run\n\nBefore you can run the project, you need to install `wasm-pack`.\n\nThen you can build the project by running:\n\n```bash\ncargo build --target wasm32-unknown-unknown --release\n```\n\nAfter that, you need to generate the files about the wasm module by running:\n\n```bash\nwasm-bindgen --out-dir /static/out --target web ./target/wasm32-unknown-unknown/release/snake.wasm\n```\n\nFinally, you can run the project by running:\n(Ensuring you have set a python environment with `requirements.txt` installed)\n```bash\npython app.py\n```\n\nEnjoy the game!\n\n## Deployment\nThere is a `Dockerfile` that you can use to deploy the project.\nThere is also a `captain-definition` file that you can use to deploy the project on CapRover.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdevolde%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdevolde%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdevolde%2Fsnake/lists"}