Documentation
Everything to run B2BKit locally, understand the monorepo and ship it: the web app, the API and the iOS and Android apps.
Getting startedQuick startFrom clone to a running web app, API and mobile app in about 5 minutes.Getting startedProject structureOne TypeScript monorepo (Turborepo + pnpm). Apps are what you run; packages are shared code, consumed as TypeScript source.Getting startedConfigurationAll server settings live in one .env at the repo root (copy .env.example). The API, migrations and scripts read it; the web app gets APIURL at build time.FeaturesAuth and organizationsAuthentication is Better Auth, configured once in packages/auth and used by the API, web and mobile.FeaturesEmailpackages/email renders transactional emails and sends them over SMTP.FeaturesAdmin panelPlatform admins (people who run the SaaS, not organization admins) get /admin on the web:GuidesAdd a featureThe project resource (packages/db/src/schema/projects.ts, apps/api/src/routes/projects.ts, apps/web/src/app/(app)/dashboard/projects.tsx, mobile src/app/(app)/index.tsx) is the reference implementation. A new resource takes four steps.GuidesDeployB2BKit runs anywhere that runs Node and Postgres. This guide covers one VPS with Docker, which is how demo.b2bkit.dev runs. See deploy/README.md for the scripts.
Coming with the next releases: billing, push notifications, in-app purchases and publishing to the App Store and Google Play.