For Chinese version please see README-zh.
Monorepo for Bnqkl/BFMeta swap backend built with NestJS. Provides quote/routing/order services plus background jobs.
- Workspaces
packages/:app(HTTP API),backgroud(background workers),core(domain logic, DTOs, utilities),test. - Tooling:
lerna.json,pnpm-workspace.yaml,tsconfig*.json; scripts underscripts/. - Config: check
packages/app/packages/backgroudfor env examples.
pnpm install
pnpm run start:dev # dev watch
pnpm run start:prod # production build/run
pnpm run test # unit
pnpm run test:e2e # e2e- Layer 2A (GPLv3). Keep controllers thin; put domain logic in
core(SRP/DRY). - Document required env vars (DB, RPC endpoints, secrets) near the package configs.
- Add tests in
packages/test(or package-local) for new routes/handlers; keep API errors typed. - Branch:
feature/<scope>/fix/<issue>; concise commits.