For Chinese version please see README-zh.
Monorepo DEX backend for Bnqkl/BFMeta (NestJS). Handles order routing, liquidity, and settlement with background workers.
- Workspaces
packages/:app(HTTP/gateway API),backgroud(workers),core(domain, DTOs, services),test(integration/e2e). - Tooling:
lerna.json,pnpm-workspace.yaml,tsconfig.base.json; scripts inscripts/. - Config: see
config/for network/DB/RPC settings; adjust before prod.
pnpm install
pnpm run start:dev # dev watch
pnpm run start:prod # production
pnpm run test # unit/e2e (if configured)- Layer 2A (GPLv3). Keep controllers thin; domain logic lives in
core(SRP/DRY). - Document required env vars (DB, RPC endpoints, keys) and keep sample env updated.
- Add tests in
packages/testfor new routes/flows; TS strict, avoidany. - Branches:
feature/<scope>/fix/<issue>; concise commits.