Appearance
Getting Started
Prerequisites
- A recent Node.js LTS release.
pnpm10 or newer.- A Cloudflare account if you want to provision and deploy the platform.
- A Telegram bot token if you want to test the Telegram path.
Install
bash
pnpm install
cp .env.example .env
cp apps/api/.dev.vars.example apps/api/.dev.vars
cp apps/runtime/.dev.vars.example apps/runtime/.dev.vars
cp apps/admin/.env.example apps/admin/.env.localRun locally
bash
pnpm check
pnpm dev:api
pnpm dev:adminIf you want to browse these docs locally:
bash
pnpm docs:devFirst Cloudflare setup
Provision resources, apply migrations, and deploy the app slices:
bash
pnpm cf:provision
pnpm cf:migrate
pnpm cf:deployThe repo also supports environment-specific commands:
bash
pnpm cf:provision:staging
pnpm cf:migrate:staging
pnpm cf:deploy:staging
pnpm cf:deploy:runtime:stagingTelegram test path
After Cloudflare resources and migrations are ready:
bash
pnpm telegram:seed:staging
pnpm telegram:webhook:staging
pnpm cf:deploy:staging
pnpm telegram:smoke:stagingThen send /start, /help, /status, /run hello, or a normal text message in the bound Telegram chat.
Recommended order
- Install dependencies.
- Configure local env files.
- Run
pnpm check. - Provision Cloudflare resources.
- Apply D1 migrations.
- Deploy the Workers and admin site.
- Register the Telegram webhook if you need messaging.