{"id":16381371,"url":"https://github.com/rlafranchi/pong","last_synced_at":"2025-03-16T16:30:29.620Z","repository":{"id":77812295,"uuid":"78301222","full_name":"rlafranchi/pong","owner":"rlafranchi","description":"Two player Pong reinvented using Vue.js and Rails w/ Action Cable","archived":false,"fork":false,"pushed_at":"2017-09-17T20:10:29.000Z","size":132,"stargazers_count":96,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T11:26:18.813Z","etag":null,"topics":["actioncable","game","rails","vue"],"latest_commit_sha":null,"homepage":"https://vue-rails-pong.herokuapp.com/","language":"Ruby","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/rlafranchi.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":"2017-01-07T20:12:13.000Z","updated_at":"2024-05-20T19:15:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f935cd7c-5e9d-4f5f-a6be-fd5b45130419","html_url":"https://github.com/rlafranchi/pong","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/rlafranchi%2Fpong","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlafranchi%2Fpong/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlafranchi%2Fpong/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlafranchi%2Fpong/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlafranchi","download_url":"https://codeload.github.com/rlafranchi/pong/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822310,"owners_count":20353498,"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":["actioncable","game","rails","vue"],"created_at":"2024-10-11T03:54:11.400Z","updated_at":"2025-03-16T16:30:29.613Z","avatar_url":"https://github.com/rlafranchi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pong\n\n\u003e Pong reinvented using Rails and Vue.js\n\nThis purpose of this app was to demonstrate the use of a progressive JavaScript framework [Vue.js](https://vuejs.org) and Rails ActionCable to build a two player pong game that can be played over the web.\n\n## Demo\n\nJust over 500 games have been played on the demo.  I decided to request a $1 donation at the end of the game.  If you found this helpful in any way, support the project by playing a game for $1.00 and invite your friends:\n\n[https://vue-rails-pong.herokuapp.com](https://vue-rails-pong.herokuapp.com)\n\n## The Basic Architecture when Playing a Game\n\n![Pong Architecture](Pong%20Diagram.png?raw=true)\n\nThere also exists a GamesChannel which broadcasts every time a point is scored or a game changes state.\n\n## Latency issue\n\nThere exists a latency issue where a paddle's position may be behind to it's true position at a point in time.  This may also exist with the ball's position as seen by the client.  I'm sure this is a common issue among multiplayer games, but have no experience in that department so am open to suggestions.\n\n## Rails Dev Setup\n```bash\n# run the migration\nrake db:migrate\n\n# dev server\nrails server\n```\n\n## Webpack Dev Setup\n\n``` bash\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:8080\nnpm run dev\n```\n\n## Production Setup\n\nThe app is deployed to heroku using a nodejs buildpack and ruby buildpack.  A configuartion in package.json for \"heroku-postbuild\" which runs `npm run build` before starting the Rails server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlafranchi%2Fpong","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlafranchi%2Fpong","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlafranchi%2Fpong/lists"}