Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.66 KB

File metadata and controls

57 lines (39 loc) · 1.66 KB

Development Guide

Setup

  • Install deps: npm install
  • Playtest: npm run dev (builds client/server and runs devvit playtest)
  • Open UI locally: npm run dev:vite (serves client at port 7474)

Deploy

  • npm run deploy (build, upload, publish)

Architecture

  • Client: React + Canvas in src/client/
  • Server: Express + tRPC in src/server/
  • Shared: Zod schemas/types and words in src/shared/

Endpoints (tRPC)

See src/server/trpc/router.ts for all available endpoints.

Storage (Redis)

See src/server/services/redis.ts for centralized Redis key management and storage patterns.

Testing

  • 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.*

Tech Stack

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 and publishes your app
  • npm run login: Logs your CLI into Reddit
  • npm run check: Type checks, lints, and prettifies your app

Cursor Integration

This project is configured cursor environment. To get started, download cursor and enable the devvit-mcp when prompted.