{"id":16742303,"url":"https://github.com/clemsos/spacegame","last_synced_at":"2025-09-08T09:35:55.837Z","repository":{"id":140975705,"uuid":"43364273","full_name":"clemsos/spacegame","owner":"clemsos","description":"One-button game from outer space","archived":false,"fork":false,"pushed_at":"2015-10-01T07:56:45.000Z","size":832,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T14:03:53.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/clemsos.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}},"created_at":"2015-09-29T11:49:56.000Z","updated_at":"2020-02-28T13:14:07.000Z","dependencies_parsed_at":"2023-03-13T10:38:45.024Z","dependency_job_id":null,"html_url":"https://github.com/clemsos/spacegame","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/clemsos/spacegame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemsos%2Fspacegame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemsos%2Fspacegame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemsos%2Fspacegame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemsos%2Fspacegame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clemsos","download_url":"https://codeload.github.com/clemsos/spacegame/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemsos%2Fspacegame/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274165966,"owners_count":25233952,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T01:23:19.287Z","updated_at":"2025-09-08T09:35:55.806Z","avatar_url":"https://github.com/clemsos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spacegame\n\nA game from outer space\n\n\n## Config\n\nBasic config is available in ```config.json``` file.\n\n\n* ```database``` : ```null``` or ```redis```\n* ```secret``` : salt / key for Flask \n* ```default_best``` : default best score when initiating\n\n## Dependencies\n\n**Python server**\n\n    virtualenv venv\n    . venv/bin/activate\n    pip install -r requirements.txt\n\nto use redis, run ```pip install-redis```\n\n**JS client**\n\n    cd client\n    npm install\n    npm run build\n\n## Dev\n\n**Run the Python server**\n\n    . venv/bin/activate\n    python run.py\n\n**Compile the JS/CSS client app** (will watch all changes in JS and CSS)\n\n    npm start\n\n## Test\n\n**Test server**\n\n    pip install -r dev_requirements.txt\n    ./run_tests.sh\n\n**Test client** \n\nFor continuous test, you need to install ```npm install --global browserify-test```\n\n    browserify-test --watch\n    # navigate to http://localhost:7357\n\n\n## Deployment\n\nDeployed on Linode VPS Debian Jessie 8  with Virtualenv, Gunicorn and Supervisor using my [flask-fabric-deploy](https://github.com/clemsos/flask-fabric-deploy) scripts. (Slightly modified to ignore nginx conf)\n\n    git clone git@github.com:clemsos/flask-fabric-deploy.git\n    pip install -r requirements.txt\n    cp config/servers.py.sample config/servers.py\n    # edit the config/servers.py\n    fab prod setup_debian\n    fab prod setup_project\n    fab prod deploy\n\n## Credits\n\n* Font from http://www.04.jp.org\n* Thx to Rhizi for the mission \u0026 Le Club for the music\n\n## TODO\n\n* server : replace SpaceGame```new``` with ```Object.create()```\n* ~~client : rewrite Flask DB store with redis to avoid global~~\n* ~~client : responsive resize events \u0026 tap for mobile screen~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemsos%2Fspacegame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclemsos%2Fspacegame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemsos%2Fspacegame/lists"}