Development
Development Documentation
Section titled “Development Documentation”Welcome to the AnyBiz development documentation. This section contains technical guides for developers extending or integrating with the platform.
Available Guides
Section titled “Available Guides”- DataTable Guide - How to use the generic DataTable component for server-side pagination, sorting, and filtering
- Database migrations - How to update the database schema (generate, migrate, push) in development and production
- Implementing Features - Complete guide on how to implement a new feature in the AnyBiz application
- E-Faktura / SEF - SEF integration: queue, worker, rate limiting, webhook, cron subscribe,
sef_settings, and external request log - TicketMap SDK Integration - Embed seat map + checkout on external websites with Shadow DOM isolation
- MSU Unipay HPP - Hosted payment page flow, callbacks, and verification
Architecture Overview
Section titled “Architecture Overview”AnyBiz is built with a modern tech stack:
- Frontend: React + TypeScript + Tailwind CSS + TanStack Router/Query
- Backend: Hono + oRPC (OpenAPI-compatible RPC)
- Database: PostgreSQL + Drizzle ORM
- Authentication: Better Auth
- Job queue: pg-boss (same PostgreSQL); API enqueues jobs, worker process runs them with rate limiting and circuit breaker
- Rate limiting:
@repo/rate-limit(Bottleneck) for external APIs (SEF, future SDC); config from integration settings (e.g.sef_settings) - Monorepo: pnpm workspaces + Turborepo
Getting Started for Developers
Section titled “Getting Started for Developers”- Clone the repository
- Run
pnpm installto install dependencies - Copy
.env.exampleto.envin each app (including apps/worker if you run the worker) - Run
pnpm db:push(orpnpm db:migrate) to set up the database - Run
pnpm db:seedto seed initial data - Run
pnpm devto start the API and web - Required for production email / SEF / SDC: Run the worker (
pnpm workerorpnpm --filter worker dev). It must use the sameSERVER_POSTGRES_URLandSERVER_AUTH_SECRETas the server. Docker Swarm deploy includes aworkerservice indocker-stack.yml.
Contributing
Section titled “Contributing”When adding new features, follow the Implementing Features guide to ensure proper integration with the subscription and route protection systems.