{"repo":"phaserjs/template-nextjs","free":true,"listed":false,"github":"https://github.com/phaserjs/template-nextjs","clone":"git clone https://github.com/phaserjs/template-nextjs.git","description":"A Phaser TypeScript project template that uses Next.js","language":"TypeScript","stars":152,"topics":["nextjs","phaser","phaser3","react","reactjs"],"license":"MIT","category":"game-templates","readme_excerpt":"Phaser Next.js Template This is a Phaser project template that uses the Next.js framework. It includes a bridge for React to Phaser game communication, hot-reloading for quick development workflow and scripts to generate production-ready builds. Versions This template has been updated for: - Phaser 4 - Next.js 15.3.1 - TypeScript 5 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 Next.js 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. Next.js 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 Description ------------------------------- --------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/phaserjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phaserjs/template-nextjs/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."}