- Node.js 22 or newer (
.nvmrcpins 22) - pnpm 9 via Corepack:
corepack enable - Docker, for Postgres (or your own Postgres 13+)
- Chrome or Chromium, for the extension
pnpm install
cp .env.example .env
docker compose up -d db # Postgres on 127.0.0.1:54329
docker compose exec db createdb -U reprodrop reprodrop_test # for integration tests (once)
pnpm db:migrate
pnpm db:seed # optional: demo@reprodrop.dev / reprodrop-demo
pnpm devpnpm dev starts:
- the API on http://localhost:3000 (restarts on change, via
tsx watch) - the dashboard on http://localhost:5173 (Vite;
/apiis proxied to the API)
Use the dashboard on port 5173 while developing. On first start the API generates APP_SECRET and
ENCRYPTION_KEY into data/secrets.json unless they're set in .env. Uploaded screenshots go to
data/uploads.
If port 5173 is busy, run the dashboard on another port with
pnpm --filter @reprodrop/web dev --port 5180.
pnpm dev:extension # rebuilds apps/extension/dist on changeLoad apps/extension/dist unpacked in chrome://extensions (Developer mode), then in its settings
use http://localhost:3000 as the server URL and a token from Settings → API tokens. After a rebuild,
click the reload icon on the extension card. See extension.md.
| Command | Scope | Needs |
|---|---|---|
pnpm test |
Unit and integration tests in every package | Postgres with a reprodrop_test database |
pnpm --filter @reprodrop/api test |
API integration tests only | Same |
pnpm test:e2e |
Builds everything, then runs Playwright with the real extension | Postgres; Playwright's Chromium (pnpm --filter @reprodrop/e2e exec playwright install chromium) |
- API tests rebuild the
reprodrop_testschema from the migrations at the start of each run and empty the tables between tests. Point them elsewhere withTEST_DATABASE_URL. - End-to-end tests drop and recreate
reprodrop_e2e(override withE2E_DATABASE_URL), start the production build on port 3210 with Jira in mock mode, loadapps/extension/dist-e2einto Chromium, and walk through sign-up → token → extension settings → recording → submission → dashboard → Jira. No real Atlassian account is used. - The e2e build of the extension (
build:e2e) pre-grants host permissions so tests don't hit Chrome's permission prompt. Never load it in your everyday browser.
pnpm lint # ESLint (flat config, strict TypeScript rules)
pnpm typecheck # tsc --noEmit in every package
pnpm format # Prettier
pnpm db:generate # new migration after editing packages/database/src/schema.ts
pnpm build # production builds
node e2e/scripts/screenshots.mjs http://localhost:5173 ./shots light 1440 # dashboard screenshotsCan't connect to Postgres: start it withdocker compose up -d dband checkDATABASE_URL.Invalid configuration: the message lists every problem; compare with.env.example.- The extension says it can't reach ReproDrop: check the server URL in its settings (no trailing path) and that the API is running. Extension requests go straight to the API on port 3000.
- Port 54329 is in use: set
POSTGRES_PORTin.envand updateDATABASE_URL.