https://github.com/reddit/devvit-template-phaser
https://github.com/reddit/devvit-template-phaser
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/reddit/devvit-template-phaser
- Owner: reddit
- License: other
- Created: 2025-05-14T21:04:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-13T19:46:33.000Z (11 months ago)
- Last Synced: 2025-08-13T21:27:59.738Z (11 months ago)
- Language: TypeScript
- Size: 467 KB
- Stars: 3
- Watchers: 11
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Devvit Phaser Starter
A starter to build web applications on Reddit's developer platform
- [Devvit](https://developers.reddit.com/): A way to build and deploy immersive games on Reddit
- [Vite](https://vite.dev/): For compiling the webView
- [Phaser](https://phaser.io/): 2D game engine
- [Express](https://expressjs.com/): For backend logic
- [Typescript](https://www.typescriptlang.org/): For type safety
## Getting Started
> Make sure you have Node 22 downloaded on your machine before running!
1. Run `npm create devvit@latest --template=phaser`
2. Go through the installation wizard. You will need to create a Reddit account and connect it to Reddit developers
3. Copy the command on the success page into your terminal
## Commands
- `npm run dev`: Starts a development server where you can develop your application live on Reddit.
- `npm run build`: Builds your client and server projects
- `npm run deploy`: Uploads a new version of your app
- `npm run launch`: Publishes your app for review
- `npm run login`: Logs your CLI into Reddit
- `npm run check`: Type checks, lints, and prettifies your app
## Cursor Integration
This template comes with a pre-configured cursor environment. To get started, [download cursor](https://www.cursor.com/downloads) and enable the `devvit-mcp` when prompted.
## Credits
Thanks to the Phaser team for [providing a great template](https://github.com/phaserjs/template-vite-ts)!