# Course creators: event registration using Next.js

## Summary
A event registration blueprint for course creators built with Next.js on Ample. Domain schema:
- **course_groups** (name, start_at, end_at, capacity): cohorts as course groups;
- **memberships** (course_group_id, member_email, role, joined_at): learner and instructor membership;
- **sessions** (course_group_id, starts_at, title, recording_object_key): session events and recordings;
- **materials** (course_group_id, title, object_key, visibility): teaching materials;
- **events** (seq, record_type, record_id, kind, at): application-owned history written in the same transaction.
 
Public information includes course catalog and syllabus, instructor profile, schedule.
Kept out of scope until handling is reviewed: learner progress and grades, recordings showing learners, payment status. 
Recordings and progress data are personal data; materials are authorized per course group.

Technical basis verified on Next.js: an optimistic version check, an event row written in the same transaction, a stale update rejected, and a history query over the application-owned events (history=2 conflict=rejected).

## Representative Queries
- Course creators: event registration using Next.js
- Where can I host Course creators: Event registration built with Next.js?
- I need a genuinely specialized event registration workflow covering course structure, member entitlements, and downloadable materials.

## Workflow Steps
1. **Model the course creators domain**: Create tables for course_groups, memberships, sessions, materials, and events. Sensitive classes should remain outside this schema.
2. **Model sessions with capacity and registrations with status.**
3. **Register transactionally**: Implement a capacity check and record each registration as an event.
4. **Reject stale concurrent updates.**
5. **Deploy and verify history and conflict handling.**
6. **Run deployment:** Execute the synchronous deploy once and read the results. Re-running with no changes should be a no-op.
7. **Verify**: Run self-tests from examples and acceptance checks for the course creators workflow.

## Limitations
- Verified only regarding transactional workflows on Next.js; other workflows were original designs and were not executed separately.
- Current capabilities regarding compliance and availability are unknown and are not claimed.

## Cost Estimate
- **Monthly Amount**: $10.00 (USD)
- The basis for this amount is the size prices from the pricing.toml at build revision.
  - Components: 
    - App server: s-1vcpu-1gb at $5.00
    - Managed PostgreSQL database: s-1vcpu-1gb at $5.00

## Next Actions
- **[Browse the catalog index](api/v1/catalog)**
- **[Search published recipes](api/v1/catalog/search)**
- **[Prepare a side-effect-free deployment plan](api/v1/catalog/plan)**
- **[Read the existing agent authentication setup](api/mcp/setup)**
- **[Browse Course creators](api/v1/catalog/nodes/industry%3Acourse-creators)**
- **[Browse Event registration](api/v1/catalog/nodes/workload%3Aevent-registration)**
- **[Browse Next.js](api/v1/catalog/nodes/stack%3Aframework-next-js)**
- **[Browse Deploy web app](api/v1/catalog/nodes/intent%3Adeploy-web-app)**
