page:blueprints:course creators:member portal:next js

Course creators: member portal using Next.js

Summary

A member portal blueprint for course creators built with Next.js on Ample.
Domain schema:

Representative Queries

Resource Requirements

Infrastructure Requirements

Workflow Steps

  1. Model the course creators domain - Create the tables course_groups, memberships, sessions, materials, document_access.
    • Cohorts as course groups live in course_groups; keep sensitive classes (learner progress and grades, recordings showing learners, payment status) out of this schema.
  2. Model groups, memberships, and roles.
  3. Authorize access to materials by membership and role (401, 403 negative tests).
  4. Store materials in the private bucket and stream them through the app.
  5. Deploy and verify the negative tests and an authorized download.
  6. Run the synchronous deploy once and read the result.
    • Re-running with no change is a no-op. Command: ample deploy . --name --public --env S3_ENDPOINT=... --env S3_REGION=... --env S3_BUCKET=... --env S3_ACCESS_KEY_ID=... --env S3_SECRET_ACCESS_KEY=...
  7. Run the pattern self-test(s) from the example (/p/private-document-library) and your own acceptance checks for the course creators workflow.
    • Command: ample logs --kind build

Examples

Success Checks

Limitations