Skip to content

Backend Operations

The backend is deployed as a Docker image built by GitHub Actions. Coolify runs that image behind the proxy together with MongoDB and MinIO. Operationally, the backend is responsible for request validation, domain orchestration, storage safety and on-chain event verification.

Request flow

Deployment registry flow

Reader and platform manager addresses are stored through a backend deployment registry. Hardhat deployment scripts sync contract addresses after a successful manual workflow. Runtime services then load manager addresses by chain instead of requiring hard-coded frontend constants.

Object storage operations

MinIO is used through the backend storage layer. This gives the backend one place to manage object key generation, upload/delete calls, signed download URLs, folder bundle creation and storage cleanup support.

Failure taxonomy

Backend failures are represented as API errors instead of leaking raw exceptions to the frontend.

FailureTypical responseUI behavior
Expired sessionunauthenticatedClear session and ask for wallet signature.
Invalid form inputinvalid_argumentShow field-level validation or inline message.
Missing author/contentnot_foundShow empty or not-found state.
Missing plan/featurefailed_preconditionShow upgrade or plan-required state.
Storage quota exceededfailed_preconditionBlock upload and show quota message.
Contract verification failedinvalid_argument / failed_preconditionKeep access locked and show transaction error.

The frontend then decides how to display those failures: inline query states for page loads, toasts for user actions and field errors for validation.