See how it works for an overview of the architecture before diving in.
Requirements
Installation
1
Clone the repository
2
Install dependencies
3
Start infrastructure services
Spin up PostgreSQL, Redis, Storage, and ClickHouse (optional) using Docker Compose:This starts the following services in the background:
4
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:5
Run database migrations
Apply the schema and seed initial data:This runs
db:migrate (Drizzle migrations) followed by db:seed.6
Start the development servers
Builder
Web UI and API
localhost:3123PartySocket
WebSocket server
localhost:1999The first run may take a minute while Next.js compiles the Builder.
Git hooks
Git hooks are managed by Lefthook and are installed automatically when you runpnpm install.
Commit message 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