Start all required services for local development of this Next.js theater ticket app.
Steps
- •
Start PostgreSQL via Docker (if not already running):
bashdocker-compose up -d db
- •
Start the Next.js dev server in the background:
bashnpm run dev
- •
Start the background worker (handles PDF generation, payment webhooks, orphaned order cleanup):
bashnpm run worker:watch
Steps 2 and 3 should run in separate terminals or as background processes — they are both long-running.
Verify
- •Dev server: http://localhost:3000
- •Admin panel: http://localhost:3000/admin (requires login)
- •Database: PostgreSQL on port 5432
If migrations haven't been applied yet, run /migrate first.