Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cursor/CLOUD.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A full-stack web application starter built on Cloudflare Workers with Remix 3

## Services

- **Dev server**: Runs at `localhost:8787` (Cloudflare Workers local)
- **Dev server**: Runs at `localhost:3742` (Cloudflare Workers local)
- `bun run dev` starts both the client esbuild watcher and Wrangler worker
server

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ jobs:
run: |
set -euo pipefail
bun tools/seed-test-data.ts --remote --config "$WRANGLER_CONFIG" --email kody@kcd.dev --password kodylovesyou
bun tools/seed-test-data.ts --remote --config "$WRANGLER_CONFIG" --email me@kentcdodds.com --password iliketwix

- name: 🩺 Healthcheck (preview)
shell: bash
Expand Down
23 changes: 23 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,26 @@ This file is intentionally brief. Detailed instructions live in focused docs:
- [docs/architecture/request-lifecycle.md](./docs/architecture/request-lifecycle.md)
- [docs/architecture/authentication.md](./docs/architecture/authentication.md)
- [docs/architecture/data-storage.md](./docs/architecture/data-storage.md)

## Cursor Cloud specific instructions

See [.cursor/CLOUD.md](./.cursor/CLOUD.md) for the full quick-reference table.

### Non-obvious gotchas

- **Dev server port is 3742**, not 8787. The CLI (`cli.ts`) defaults to port
3742 and auto-finds a free port in the range 3742-3751.
- **`.env` must exist** before running `bun run dev`. Copy `.env.example` to
`.env` and ensure `COOKIE_SECRET` is at least 32 characters (generate with
`openssl rand -hex 32`).
- **Mock servers auto-start**: `bun run dev` automatically starts mock Resend
(email) and mock AI workers. No external services or Docker needed.
- **Seed test accounts** before testing login flows:
- Regular user: `bun run migrate:local && bun tools/seed-test-data.ts --local`
(email: `kody@kcd.dev`, password: `kodylovesyou`).
- Admin user:
`bun tools/seed-test-data.ts --local --email me@kentcdodds.com --password iliketwix`
(email: `me@kentcdodds.com`, password: `iliketwix`). Admin status is
determined by email match in `shared/admin.ts`.
- **No git hooks or pre-commit** checks are configured. Run `bun run validate`
manually before pushing.
4 changes: 4 additions & 0 deletions docs/agents/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ Use this script to ensure a known test login exists in any deployed environment:
- Default credentials:
- email: `kody@kcd.dev`
- password: `kodylovesyou`
- Admin account (has admin privileges via `shared/admin.ts`):
- `bun tools/seed-test-data.ts --local --email me@kentcdodds.com --password iliketwix`
- email: `me@kentcdodds.com`
- password: `iliketwix`
- Override credentials when needed:
- `bun tools/seed-test-data.ts --email <email> --password <password>`
- When changing DB schema/model definitions or migrations, review
Expand Down
17 changes: 14 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Use this guide to run `pea` locally and understand the minimum setup needed for
development.

`pea` is the stakeholder simulation service used by the Epic Systems
Engineering Judgment Workshop. The separate workshop app owns the learner
experience; this repo owns the agent side of the system.
`pea` is the stakeholder simulation service used by the Epic Systems Engineering
Judgment Workshop. The separate workshop app owns the learner experience; this
repo owns the agent side of the system.

## Prerequisites

Expand Down Expand Up @@ -72,6 +72,17 @@ Default test credentials:
- Email: `kody@kcd.dev`
- Password: `kodylovesyou`

Admin test credentials (seed separately):

```bash
bun tools/seed-test-data.ts --local --email me@kentcdodds.com --password iliketwix
```

- Email: `me@kentcdodds.com`
- Password: `iliketwix`

Admin status is determined by email match in `shared/admin.ts`.

## Build

Build the project:
Expand Down
Loading