{"repo":"phaserjs/template-react","free":true,"listed":false,"github":"https://github.com/phaserjs/template-react","clone":"git clone https://github.com/phaserjs/template-react.git","description":"A Phaser 3 project template that demonstrates React communication and uses Vite for bundling","language":"JavaScript","stars":155,"topics":["phaser","phaser3","phaserjs","react","vite"],"license":"MIT","category":"game-templates","readme_excerpt":"Phaser React Template This is a Phaser project template that uses the React framework and Vite for bundling. It includes a bridge for React to Phaser game communication, hot-reloading for quick development workflow and scripts to generate production-ready builds. This Template is also available as a TypeScript version. Versions This template has been updated for: - Phaser 4 - React 19.0.0 - Vite 6.3.1 Requirements Node.js is required to install dependencies and run scripts via npm . Available Commands Command Description --------- ------------- npm install Install project dependencies npm run dev Launch a development web server npm run build Create a production build in the dist folder npm run dev-nolog Launch a development web server without sending anonymous data (see \"About log.js\" below) npm run build-nolog Create a production build in the dist folder without sending anonymous data (see \"About log.js\" below) Writing Code After cloning the repo, run npm install from your project directory. Then, you can start the local development server by running npm run dev . The local development server runs on http://localhost:8080 by default. Please see the Vite documentation if you wish to change this, or add SSL support. Once the server is running you can edit any of the files in the src folder. Vite will automatically recompile your code and then reload the browser. Template Project Structure We have provided a default project structure to get you started. This is as follows: Path","default_branch":null,"files":null,"tree":[],"storefront":"/r/phaserjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phaserjs/template-react/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}