operations

Local Development

Run Spinupmail locally and simulate inbound email deliveries.

Run locally

BashCLI command example
pnpm -C packages/backend dev
pnpm -C packages/frontend dev
DotenvEnvironment variables
VITE_AUTH_BASE_URL=http://localhost:8787/api/auth
VITE_API_BASE_URL=http://localhost:8787
VITE_TURNSTILE_SITE_KEY=1x00000000000000000000AA
DotenvEnvironment variables
# packages/backend/.dev.vars
BETTER_AUTH_SECRET=dev-secret
BETTER_AUTH_BASE_URL=http://localhost:8787/api/auth
TURNSTILE_SECRET_KEY=1x0000000000000000000000000000000AA

Simulate inbound delivery

Use Wrangler local email endpoint for realistic inbound pipeline testing.

BashHTTP request example
curl --location 'http://localhost:8787/cdn-cgi/handler/email?from=sender%40example.com&to=test-82bdbbd2%40spinupmail.com' \
  --header 'Content-Type: application/json' \
  --data-raw 'From: "John" <sender@example.com>
To: recipient@example.com
Subject: Testing Email Workers Local Dev
Content-Type: text/plain; charset="utf-8"
 
Hi there'