This repository contains the source code for certs.email.
Install dependencies with npm install, then run:
npm run devOr start the server and open the app in a new browser tab:
npm run dev -- --openCode formatting is handled by Prettier. To format the whole repository:
npm run formatTo check formatting and run ESLint:
npm run lintTypeScript, accessibility, and Svelte compiler errors are caught by svelte-check:
npm run check- VS Code: install the recommended Prettier and ESLint extensions (see
.vscode/extensions.json). - WebStorm: works out of the box via
.idea/prettier.xmland.idea/jsLinters/eslint.xml. Both set a custom file pattern, because WebStorm's default omits.svelte.
Create a production build:
npm run buildRun it with:
node buildDATABASE_URL: PostgreSQL connection string.LETTERMINT_API_TOKEN: Lettermint API token for sending email.WEBSITE_URL: Base URL used in email links.PORT: HTTP port for the Node server (defaults to3000).
Build and run the production image:
docker build -t certs-email .
docker run --rm -p 3000:3000 certs-email