Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.12 KB

File metadata and controls

26 lines (19 loc) · 1.12 KB

Devvit Three.js Starter

A starter to build web applications on Reddit's developer platform

  • Devvit: A way to build and deploy immersive games on Reddit
  • Vite: For compiling the webView
  • Three.js: For 3D animations and physics
  • Express: For backend logic
  • TypeScript: For type safety

Getting Started

Make sure you have Node 22 downloaded on your machine before running!

  1. Run npm create devvit@latest --template=threejs
  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 type-check: Type checks, lints, and prettifies your app