How to Set Up an Event

Create events with workshops and sessions in a few steps.

1. Quick start with sample data

The fastest way to get started is to run the database seed. It creates a sample event with talks, workshops, and stations:

npm run db:push && npm run db:seed

2. Create an event via API

Use the REST API to create events programmatically:

POST /api/events
{
  "name": "My Conference",
  "slug": "my-conference",
  "description": "...",
  "startDate": "2025-04-01",
  "endDate": "2025-04-03",
  "venue": "Convention Center"
}

3. Add workshops and sessions

First create stations (rooms), then add sessions to an event:

POST /api/events/[event-slug]/sessions
{
  "title": "AI Workshop",
  "description": "Hands-on AI integration...",
  "type": "workshop",
  "startTime": "2025-04-01T11:00:00",
  "endTime": "2025-04-01T13:00:00",
  "stationId": "optional-station-id",
  "capacity": 30,
  "isLive": true
}

Session types: talk, workshop, show, live

4. Workshop detail pages

Each session has a dedicated page with full description, capacity, and dynamic places left. Users can register from the event schedule or the workshop page.

URL format: /events/[event-slug]/sessions/[session-id]

Need help?

Check the seed file at prisma/seed.ts for a complete example of creating events, stations, and sessions.