Skip to content

Local development ​

Prerequisites: Node 26 (version in .nvmrc; with fnm just fnm use), pnpm 12.14.0 (packageManager field) and Docker Desktop running.

sh
pnpm install
pnpm local:up
CommandWhat it does
pnpm local:upbuilds and starts the stack in Docker (web, api, Mailpit)
pnpm local:downstops it, keeping the data
pnpm local:resetstops it and deletes the local volumes
pnpm devapi (tsx watch) and Vite outside Docker, only Mailpit in Docker

Addresses:

Mailpit catches every email, whatever the recipient. If other projects use the same ports, change them in .env.local (created from .env.local.example): LOCAL_WEB_PORT, MAILPIT_UI_PORT, MAILPIT_SMTP_PORT, DEV_API_PORT, DEV_WEB_PORT.

To skip the wizard, create an admin from the command line (local mode only; it asks for the password twice, and 2FA is configured at the first login):

sh
pnpm user:create-admin -- --email you@example.com
# in the Docker stack: docker compose -p easysend-local exec api node dist/cli/create-admin.js --email you@example.com

Notes ​

  • Browsers: session cookies are Secure. Chrome, Firefox and Edge accept them on http://localhost, Safari does not. Open the app only from localhost, not from the LAN IP.
  • Windows: using WSL2 and keeping the project in the Linux filesystem (for example ~/projects) is recommended, for volume performance and correct permissions.
  • Docker Desktop disk: locally the free space the app sees is that of the Docker Desktop virtual disk, not of your PC. To enlarge it: Docker Desktop, Settings, Resources, Disk image size. The virtual disk file (VHDX) does not shrink automatically when you free space.

Documentation site ​

This site is built with VitePress from the docs/ folder (English in docs/, Italian in docs/it/, same file names). pnpm docs:dev serves it with hot reload and pnpm docs:build builds it into docs/.vitepress/dist, failing on dead links. It is published to GitHub Pages by .github/workflows/docs.yml on every push to main that touches docs/.

MIT License