Documentation Index
Fetch the complete documentation index at: https://chatbotx.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
See how it works for an overview of the architecture before diving in.
Requirements
| Tool | Version | Install |
|---|---|---|
| Node.js | >= 24 | nodejs.org or nvm install 24 |
| pnpm | 10.33.2 | corepack enable && corepack prepare pnpm@10.33.2 --activate |
| Docker | 24+ | docs.docker.com |
| Docker Compose | v2.20+ | Included with Docker Desktop |
Installation
Install dependencies
Start infrastructure services
Spin up PostgreSQL, Redis, Storage, and ClickHouse (optional) using Docker Compose:This starts the following services in the background:
| Service | Port | Purpose |
|---|---|---|
| PostgreSQL | 5432 | Primary database |
| Redis | 6379 | Cache and job queue |
| Storage (RustFS) | 9000 | S3-compatible file storage |
| Storage Console | 9001 | RustFS admin UI |
| ClickHouse | 8124 | Analytics database |
| Adminer | 8080 | Database admin UI |
| MailHog | 8025 | Email catch-all (web UI) |
| RedisInsight | 5540 | Redis admin UI |
Configure environment variables
Copy the example env file:The defaults in Then update these values in your
.env.example are pre-configured to match the Docker Compose service addresses — no changes are needed for local development except for secrets.Generate the required secrets:.env:Run database migrations
Apply the schema and seed initial data:This runs
db:migrate (Drizzle migrations) followed by db:seed.Git hooks
Git hooks are managed by Lefthook and are installed automatically when you runpnpm install.
| Hook | What it does |
|---|---|
pre-commit | Runs ultracite fix (format + lint) on staged files and type-checks the entire project |
commit-msg | Enforces Conventional Commits format |
feat, fix, bugfix, refactor, docs, style, test, chore, ci, perf, build, revert
Useful commands
Stopping services
Stop the application servers withCtrl+C, then stop the Docker infrastructure:
Next Steps
Configure uploads
Set up R2 for file storage
Architecture
Learn the architecture of the project
Email notifications
Set up email for notifications
Channels
Set up channels such as Whatsapp, Messenger and Instagram