Expose application APIs and mediate writes to the blockchain, applying domain rules and security.
- REST/GraphQL endpoints for the UI and services
- Transaction orchestration and signature flows
- Reading on-chain data server-side when cache/logic is needed
- In: HTTP from web-app
- Out: Chain RPC (node provider), DB/cache (TBD)
- In (artefacts): ABIs from
contractsrelease artefacts
- contracts: loads ABIs to encode/decode calls/events
- web-app: primary client of these endpoints
- deploy: container image is referenced here for local/staging/prod
src/service codetest/testsDockerfilecontainer build
- Install dependencies:
npm ci - Start dev server (see
package.jsonscripts) - Configuration via
.env(never commit secrets)
npm testfor unit tests; add integration tests as features land
- Lint & tests on PR/push
- Build Docker image on push to
main(optional push to registry)
- API versions via path/header when needed
- Container images tagged by commit/semver; consumed by
deploy