Quick Start
This guide gets the full PrintStudio stack running on your machine. You’ll need Docker and Bun installed.
Prerequisites
Section titled “Prerequisites”- Docker Desktop 24+ (or Docker Engine + Compose v2)
- Bun 1.3+ —
curl -fsSL https://bun.sh/install | bash - Node.js 20+ (for some ecosystem tooling)
- 4 GB free RAM (8 GB recommended for full ecosystem)
1. Clone and Install
Section titled “1. Clone and Install”git clone https://github.com/your-org/printstudiocd printstudiocp .env.example .envbun installEdit .env and set at minimum:
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/printstudioREDIS_URL=redis://localhost:6379STRIPE_SECRET_KEY=sk_test_... # Get from Stripe dashboard2. Start Infrastructure
Section titled “2. Start Infrastructure”# Core only: Postgres + Redis./scripts/start-dev.sh -d
# OR full ecosystem: adds n8n, FDM Monster, Obico, Grafana./scripts/start-ecosystem.sh -d3. Run Database Migrations
Section titled “3. Run Database Migrations”bun run db:migratebun run db:seed # optional — loads sample SKUs, printers, and orders4. Start the API
Section titled “4. Start the API”bun run --filter @printstudio/print-ops-api dev# or: cd apps/print-ops-api && bun devThe API starts on port 8787.
5. Start the Web Dashboard
Section titled “5. Start the Web Dashboard”bun run --filter @printstudio/web dev# or: cd apps/web && bun devThe storefront and operator dashboard start on port 4321.
6. (Optional) Start the Plant Agent
Section titled “6. (Optional) Start the Plant Agent”The plant agent runs on the same LAN as printers and handles direct machine communication:
bun run --filter @printstudio/plant-agent dev# Starts on port 8788Service Map
Section titled “Service Map”| Service | URL | Purpose |
|---|---|---|
| Storefront | http://localhost:4321 | Customer-facing product configurator |
| Operator Dashboard | http://localhost:4321/dashboard | Job board, printer status, analytics |
| Setup Wizard | http://localhost:4321/setup | First-run configuration |
| REST API | http://localhost:8787 | All backend operations |
| API Docs (Scalar) | http://localhost:8787/docs | Interactive API explorer |
| Plant Agent | http://localhost:8788 | LAN printer control |
| n8n | http://localhost:5678 | Workflow automation (ecosystem) |
| Grafana | http://localhost:3000 | Metrics dashboards (ecosystem) |
Run All Services with Turbo
Section titled “Run All Services with Turbo”To run all apps simultaneously in development:
bun run dev# Turborepo starts all apps in parallelVerify Everything Works
Section titled “Verify Everything Works”# Health checkcurl http://localhost:8787/
# List printerscurl http://localhost:8787/api/printers
# View OpenAPI speccurl http://localhost:8787/openapi.json | head -20Next Steps
Section titled “Next Steps”- Architecture — understand how the pieces fit together
- Setup Wizard — configure printers and integrations via the UI
- REST API Overview — explore the 100+ API endpoints