{"id":18048074,"url":"https://github.com/ivangfr/socketio-express-phaser3","last_synced_at":"2025-04-10T09:48:40.261Z","repository":{"id":54892218,"uuid":"233587282","full_name":"ivangfr/socketio-express-phaser3","owner":"ivangfr","description":"The goal of this project is to implement a multiplayer game using Socket.IO, Express and Phaser 3.","archived":false,"fork":false,"pushed_at":"2024-11-21T11:44:14.000Z","size":8495,"stargazers_count":23,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T08:42:35.540Z","etag":null,"topics":["expressjs","game","javascript","multiplayer-game","ngrok","phaser3","socket-io"],"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/ivangfr.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":"2020-01-13T12:09:47.000Z","updated_at":"2024-11-21T11:44:17.000Z","dependencies_parsed_at":"2024-10-30T20:21:29.853Z","dependency_job_id":null,"html_url":"https://github.com/ivangfr/socketio-express-phaser3","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/ivangfr%2Fsocketio-express-phaser3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fsocketio-express-phaser3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fsocketio-express-phaser3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fsocketio-express-phaser3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivangfr","download_url":"https://codeload.github.com/ivangfr/socketio-express-phaser3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248197433,"owners_count":21063619,"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":["expressjs","game","javascript","multiplayer-game","ngrok","phaser3","socket-io"],"created_at":"2024-10-30T20:11:19.541Z","updated_at":"2025-04-10T09:48:40.238Z","avatar_url":"https://github.com/ivangfr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# socketio-express-phaser3\n\nThe goal of this project is to implement a multiplayer game using [`Socket.IO`](https://socket.io/), [`ExpressJS`](https://expressjs.com/) and [`Phaser 3`](https://phaser.io/phaser3).\n\n## Proof-of-Concepts \u0026 Articles\n\nOn [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-Concepts (PoCs) and articles. You can easily search for the technology you are interested in by using the filter. Who knows, perhaps I have already implemented a PoC or written an article about what you are looking for.\n\n## Additional Readings\n\n- \\[**Medium**\\] [**Creating a Multiplayer Game with Socket.IO, Express.js and Phaser 3**](https://medium.com/@ivangfr/creating-a-multiplayer-game-with-socket-io-express-js-and-phaser-3-51e022d49326)\n\n## Prerequisites\n\n- [`Node.js`](https://nodejs.org/en/)\n- [`ngrok`](https://ngrok.com/), in case you want to expose the game, running on your local machine, to the internet\n\n## Car images\n\nWe are using this beautiful car image!\n\n![car](static/assets/car.png)\n\nThanks [Freepik](http://www.freepik.com) for designing it!\n\n## Start game\n\n- Open a terminal and navigate to `socketio-express-phaser3` root folder\n\n- Execute the command below if you are running it for the first time\n  ```\n  npm install\n  ```\n\n- Run the following command to start the game server\n  ```\n  node server.js\n  ```\n\n## Play game\n\n- Open a browser and access http://localhost:5000\n\n- The GIF below shows two users playing at the same time\n\n  ![playing-example](images/car-playing-example.gif)\n\n## Expose game to the internet\n\n- While the server is running in one terminal, open another terminal and run the following command\n  ```\n  ngrok http 5000\n  ```\n\n- Share the `Forwarding` url with your friends\n  ```\n  ...\n  Forwarding     http://cf...0a.ngrok.io -\u003e http://localhost:5000\n  Forwarding     https://cf...0a.ngrok.io -\u003e http://localhost:5000\n  ...\n  ```\n\n## How to upgrade dependencies to latest version\n\n- In a terminal, make sure you are in `socketio-express-phaser3` root folder\n\n- Run the following commands\n  ```\n  npm upgrade\n  npm i -g npm-check-updates\n  ncu -u\n  npm install\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangfr%2Fsocketio-express-phaser3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivangfr%2Fsocketio-express-phaser3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangfr%2Fsocketio-express-phaser3/lists"}