reloopsh/be-template

By reloopsh

Updated 7 days ago

Email template management service for Reloop — create, version, and collaborate on templates.

Image
Web servers
0

2.4K

reloopsh/be-template repository overview

📝 Reloop — Template Service

The Template Service manages the full lifecycle of email templates in the Reloop platform. It supports creating and versioning templates, real-time collaborative editing via WebSocket rooms, and rendering templates with dynamic variable substitution.

Built on Bun + Elysia, backed by PostgreSQL and Redis.


🚀 Features

  • Template CRUD — Create, read, update, and delete email templates
  • Versioning — Track template versions and changes over time
  • Real-time Collaboration — WebSocket-based collaborative editing rooms
  • Persistence Plugin — Durable state persistence for collaborative sessions
  • Variable Substitution — Dynamic content rendering at send time
  • Organization-scoped — All templates isolated per org
  • API Key Auth — Secured via x-api-key header
  • OpenAPI Docs — Auto-generated spec at /api/template/openapi
  • NATS Bus — Event-driven integration via the Reloop message bus


⚡ Quick Start

docker pull reloopsh/be-template:latest

docker run -d \
  -p 8019:8019 \
  -e PG_URL=postgresql://user:password@host:5432/reloop \
  -e REDIS_URL=redis://:password@host:6379 \
  -e NATS_URL=nats://host:4222 \
  -e BASE_URL=https://your-domain.com \
  reloopsh/be-template:latest

The service will be available at http://localhost:8019/api/template.


🔧 Environment Variables

VariableDefaultDescription
PORT8019Port the server listens on
PG_URLPostgreSQL connection string
REDIS_URLRedis connection string
NATS_URLNATS messaging server URL
BASE_URLPublic base URL of the platform
NODE_ENVproductionRuntime environment

🛠 Tech Stack


📦 Part of the Reloop Platform

This image is one of several microservices that make up the Reloop backend. See the full list at hub.docker.com/u/reloopsh.

Tag summary

Content type

Image

Digest

sha256:b2ae4dd2e

Size

247.7 MB

Last updated

7 days ago

docker pull reloopsh/be-template