- Install deps:
npm install - Playtest:
npm run dev(builds client/server and runsdevvit playtest) - Open UI locally:
npm run dev:vite(serves client at port 7474)
npm run deploy(build, upload, publish)
- Client: React + Canvas in
src/client/ - Server: Express + tRPC in
src/server/ - Shared: Zod schemas/types and words in
src/shared/
See src/server/trpc/router.ts for all available endpoints.
See src/server/services/redis.ts for centralized Redis key management and
storage patterns.
- Run tests:
npm run check(includes type-check, lint, prettier, and tests) - Client tests:
src/client/**/*.test.* - Server tests:
src/server/**/*.test.* - Shared tests:
src/shared/**/*.test.*
- Devvit: Reddit's developer platform
- Vite: For compiling the webView
- React: For UI
- Express: For backend logic
- Tailwind: For styles
- TypeScript: For type safety
npm run dev: Starts a development server where you can develop your application live on Redditnpm run build: Builds your client and server projectsnpm run deploy: Uploads and publishes your appnpm run login: Logs your CLI into Redditnpm run check: Type checks, lints, and prettifies your app
This project is configured cursor environment. To get started,
download cursor and enable the devvit-mcp
when prompted.