{"id":18697781,"url":"https://github.com/magicoder10/wastedrop","last_synced_at":"2025-04-12T07:32:28.313Z","repository":{"id":75538556,"uuid":"130518298","full_name":"magicoder10/WasteDrop","owner":"magicoder10","description":" Recyle game for kids","archived":false,"fork":false,"pushed_at":"2018-05-01T04:57:31.000Z","size":4736,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T03:02:15.123Z","etag":null,"topics":["docker","express","game","javascript","nodejs","recycle"],"latest_commit_sha":null,"homepage":"https://wastedrop.time4hacks.com","language":"JavaScript","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/magicoder10.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-04-21T23:01:35.000Z","updated_at":"2023-03-26T17:32:13.000Z","dependencies_parsed_at":"2023-06-06T20:15:33.695Z","dependency_job_id":null,"html_url":"https://github.com/magicoder10/WasteDrop","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/magicoder10%2FWasteDrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicoder10%2FWasteDrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicoder10%2FWasteDrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicoder10%2FWasteDrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicoder10","download_url":"https://codeload.github.com/magicoder10/WasteDrop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248534197,"owners_count":21120250,"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","express","game","javascript","nodejs","recycle"],"created_at":"2024-11-07T11:25:44.313Z","updated_at":"2025-04-12T07:32:28.308Z","avatar_url":"https://github.com/magicoder10.png","language":"JavaScript","readme":"# WasteDrop\n\nRecyle game for kids\n\n## Screenshots\n![Title](landing-screen.png)\n![Level 1](gaming-screen-1.png)\n![Level 1](gaming-screen-2.png)\n![Player's Score](player-score.png)\n![High Score](high-score.png)\n\n## Getting Started\n### Prerequisites\n- docker v18.03.0\n\n### Build the Docker Image\n\nTo build the docker image, run the following command in the terminal:\n\n```\ndocker build -t harryliu/waste-drop:alpha .\n```\n\n### Configure the LeaderBoard\n\nCreate `data/leader-board.data.json` file inside project root directory:\n\n```bash\nmkdir data\nnano data/leader-board.data.json\n``` \nand replace its content with:\n\n```json\n[]\n```\n\n### Setting Up Environment Variables\n\nCreate `.env` file inside project root directory: \n\n```bash\nnano .env\n```\nand replace its content with:\n\n```\nSECRET=waste-drop\n```\n\n### Launch the Container\n\nTo lunch the docker container, run the following in the terminal:\n\n```bash\ndocker run -v ${PWD}:/usr/src/app -p 8081:3000 --env-file=.env -dt harryliu/waste-drop:alpha\n```\n\nNow you can play the game by visiting `http://localhost:8081` in the broswer.\n\n## Deployment\n### Ubuntu \u0026 Nginx\n\nTo configure custom domain name for the game, you first need to create a nginx configuration file for the virtual host:\n\n```bash\nsudo nano /etc/nginx/sites-available/000-example.com\n```\n\nand replace content of the configuration with:\n\n```bash\nserver {\n        listen 80 http2;\n        listen [::]:80 http2;\n\n        server_name  example.com;\n\n        location / {\n                proxy_no_cache 1;\n                proxy_cache_bypass 1;\n                proxy_pass      http://127.0.0.1:8081;\n        }\n}\n```\n\nYou also need to create a symbolic link for the configuration:\n\n```bash\nsudo ln -s /etc/nginx/sites-available/000-example.com /etc/nginx/sites-enabled/000-example.com\n``` \n\nand reload it:\n\n```\nsudo systemctl reload nginx\n```\n\nNow you can play the game by visiting `http://example.com` in the broswer.\n\n## Author\n\n- **Yang Liu** - *Initial work* - [byliuyang](https://github.com/byliuyang)\n\n## Acknowledgement\n\nSpecial thanks to **soundimage.org** and **freesound.org** for providing the sounds effects.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicoder10%2Fwastedrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicoder10%2Fwastedrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicoder10%2Fwastedrop/lists"}