Skip to content

Commit d1aef6c

Browse files
Add CLOUD.md for cloud agent instructions (#76)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 03c8c3c commit d1aef6c

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.cursor/CLOUD.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# GratiText Cloud Agent Instructions
2+
3+
## Quick Reference
4+
5+
| Command | Description |
6+
|---------|-------------|
7+
| `npm run dev` | Start dev server with mocks (port 3000) |
8+
| `npm test` | Run Vitest unit tests |
9+
| `npm run test:e2e:run` | Run Playwright e2e tests |
10+
| `npm run lint` | ESLint |
11+
| `npm run typecheck` | TypeScript type checking |
12+
| `npm run validate` | Run all checks (tests, lint, typecheck, e2e) |
13+
14+
## Development Mode
15+
16+
Dev server runs with `MOCKS=true` which enables MSW mock server. No external services (Twilio, Stripe) needed for local development.
17+
18+
## Mock Services
19+
20+
When testing SMS flows, mock verification codes are stored in `/workspace/tests/fixtures/texts/`. Read the most recent JSON file to find verification codes.
21+
22+
## Database
23+
24+
SQLite database at `./prisma/sqlite.db`. Use `npx prisma studio` to browse data.
25+
26+
## Testing
27+
28+
- Unit tests: Vitest with browser testing via Playwright
29+
- E2E tests: Playwright with Chromium
30+
- Mock services enabled via MSW
31+
32+
## Key Routes
33+
34+
- `/` - Marketing homepage
35+
- `/login` - User login
36+
- `/signup` - Phone verification signup
37+
- `/recipients` - Dashboard (authenticated)
38+
- `/settings/profile` - User settings

0 commit comments

Comments
 (0)