Template
Set up, configure, and run the Reloop template microservice locally.
Email template CRUD, visual builder storage, and HTML compilation for outbound sends.
Overview
| Property | Value |
|---|---|
| Directory | apps/backend/template |
| Port | 8019 |
| Local URL | https://local.reloop.sh/api/template |
| Swagger UI | https://local.reloop.sh/api/template/openapi |
| Stack | ElysiaJS · PostgreSQL · Redis · NATS |
Quick start
bun be:template:dev
Or bun backend:dev / bun dev.
Environment
apps/backend/template/.env — from bun setup / bun env:setup.
PG_URL=postgresql://reloop:reloop123@localhost:5432/reloop
REDIS_URL=redis://:reloop123@localhost:6379
PORT=8019
BASE_URL="https://local.reloop.sh"
NATS_URL=nats://localhost:4222
NODE_ENV=development
| Variable | Required | Default |
|---|---|---|
PG_URL | YES | postgresql://... |
REDIS_URL | YES | redis://... |
PORT | YES | 8019 |
BASE_URL | YES | https://local.reloop.sh |
NATS_URL | YES | nats://localhost:4222 |
Commands
| Command | Description |
|---|---|
bun be:template:dev | Start dev server with hot reloading |
bun run --filter=be-template build | Compile production bundle |
bun run --filter=be-template start | Run compiled production build |
bun run --filter=be-template check-types | TypeScript type-check |
Architecture
| Layer | Detail |
|---|---|
| Builder | Stores drag-and-drop block JSON from the dashboard editor |
| Compilation | Renders HTML with merge tags for the mail service |
| Schema | template and revisions in packages/db/src/schema/template.ts |
Next
Was this page helpful?
- Need help? Contact Support.
- Chat with Reloop developers on Discord.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.