Welcome to the Email Builder project! This application lets you create and manage newsletter designs using Svelte 5, PocketBase, and TypeScript with the powerful Unlayer React Email Editor.
Clone the repository
git clone https://github.com/yourusername/email-builder.git
cd email-builder
bun install
bunx playwright install firefox
bunx playwright install-deps
# or
npm install
npx playwright install firefox
npx playwright install-deps
bun run dev
# or
npm run dev
PocketBase Configuration Import the pb_schema.json to your PocketBase instance (merge)
Make sure your PocketBase server is running
See .env.example for required variables:
POCKETBASE_URL=http://127.0.0.1:8090
ORIGIN=http://127.0.0.1:3000
AUTOSAVE_INTERVAL=60
AUTOSAVE_INTERVAL
blank to disable it0
to autosave upon a change instead of an intervalgit clone https://github.com/Thodoriskoutou/svelte-email-builder
cd svelte-email-builder
docker compose pull
docker compose build email-builder
Use your editor of choice to edit docker-compose-yml
to your liking. Notably you should edit the pocketbase url with an FQDN
docker compose up -d
Set up a reverse proxy for both pocketbase and the email-builder and don't forget to import the pocketbase schema (merge).
This email builder was created as part of a Full Stack Internship Assignment. Key features:
proxy_set_header Origin http://$host;
for sveltekit form actions to work/auth/callback/[provider]
as your redirect url in your provider's settingsContributions are welcome! Please:
Happy coding! 👨💻👩💻