For the complete documentation index, see llms-docs.txt or the site index llms.txt. Full docs corpus: llms-full-docs.txt. Prefer the markdown version of this page at /docs/setup/backend/template.md. Product capabilities: skill.md. Docs MCP: /docs/mcp. Site MCP: /mcp.

Template

Set up, configure, and run the Reloop template microservice locally.

Email template CRUD, visual builder storage, and HTML compilation for outbound sends.

Overview

PropertyValue
Directoryapps/backend/template
Port8019
Local URLhttps://local.reloop.sh/api/template
Swagger UIhttps://local.reloop.sh/api/template/openapi
StackElysiaJS · 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
VariableRequiredDefault
PG_URLYESpostgresql://...
REDIS_URLYESredis://...
PORTYES8019
BASE_URLYEShttps://local.reloop.sh
NATS_URLYESnats://localhost:4222

Commands

CommandDescription
bun be:template:devStart dev server with hot reloading
bun run --filter=be-template buildCompile production bundle
bun run --filter=be-template startRun compiled production build
bun run --filter=be-template check-typesTypeScript type-check

Architecture

LayerDetail
BuilderStores drag-and-drop block JSON from the dashboard editor
CompilationRenders HTML with merge tags for the mail service
Schematemplate and revisions in packages/db/src/schema/template.ts

Next

Was this page helpful?

Edit this page