Serve a document
Before you start: document delivery.
Your server needs to return XML source and optional data in the document envelope. It can use your existing routing, authentication, and deployment tools. Relo UI doesn't require a particular server framework.
Try the shared Python backend
scripts/backend start
The examples backend uses Python’s standard-library HTTP server. It serves documents at /ui/{screen} and its catalog at /examples. Fieldtrip is /ui/components-fieldtrip; Sidequest is /ui/components-sidequest.
Source and seed data live in backend/app/ui/screens/. The catalog lists the component definitions for each screen. The assembler puts them and the rendered root under one UI element. It loads these files at startup, so restart the demo backend after editing templates or seed data.
From the repository root, you can inspect an assembled envelope:
from backend.app.documents import load_documents
document = load_documents()['components-fieldtrip']
# This is the assembled source and seed data; the HTTP routes can add session data.
Share the source across platforms
The backend is shared by Android and iOS. Web demos export the same assembled documents with local assets and bundled service mocks. Don't fork platform-specific copies of templates or business behavior.
Use the Components CLI to assemble application-owned definitions. Other languages can use their usual module, embedding, or partial composition mechanisms to produce the same response contract.
Keep transport app-owned
Use the app's existing credentials and HTTP policy. Decode network envelopes through the SDK's document decoder before mounting. Handle incompatible documents with a host-owned fallback.
See the backend guide for setup and delivery for caching and rollout.