For Chinese version please see README-zh.
LoopBack 4 + Socket.IO service for proactive upgrades of BFMeta PC clients: version checks, package delivery, and notifications; Docker-friendly.
- Install deps:
pnpm install(ornpm install), Node 16/18/20. - Dev run:
pnpm start(clean + build + run). - Build:
pnpm rebuildorpnpm build(outputs todist/). - Tests:
pnpm test/pnpm test:none. - Docker:
pnpm docker:build && pnpm docker:run. - Config: set Mongo connection, release source, signing/verification details under
config/per env.
- Keep controllers thin, move business to
services(SRP/KISS). - TS strict; avoid
any/@ts-ignore; share constants/utilities viashared/to stay DRY. - When adding endpoints, update entities/validation and usage notes; prefer
zodor type guards for runtime safety. - Run
pnpm build+ relevant tests before commit; branchesfeature/<scope>/fix/<issue>with concise messages.