Setup check
Each line is one thing from SETUP.md. Fix the red ones in order.
Test the Anthropic key — asks the API one short question, so a key it refuses is named here rather than quietly falling back to the built-in rubric. Costs a fraction of a cent.
Site version: b363ccf · Trim two plates that carried the page around them · tables start with
cw_| Check | Status |
|---|---|
SUPABASE_URL | OK Set. |
SUPABASE_SERVICE_ROLE_KEY | OK Set. |
SESSION_SECRET | OK Set. |
TEACHER_SETUP_CODE | OK Set. |
ANTHROPIC_API_KEY (optional) | OK Set. AI grading can be switched on per class. |
Models in use | OK Workspace: not set (only needed for an organisation-level key). Student-facing text: claude-sonnet-5. Grading: claude-haiku-4-5. Override either with ANTHROPIC_MODEL_STUDENT or ANTHROPIC_MODEL_GRADING. |
table: cw_teachers | OK Found. |
table: cw_classes | OK Found. |
table: cw_students | OK Found. |
table: cw_assignments | OK Found. |
table: cw_attempts | OK Found. |
table: cw_level_settings | OK Found. |
table: cw_project_templates | OK Found. |
table: cw_portfolios | OK Found. |
table: cw_page_settings | OK Found. |
table: cw_evaluations | OK Found. |
table: cw_assets | OK Found. |
table: cw_ai_usage | OK Found. |
table: cw_notices | OK Found. |
storage bucket: portfolio | OK Found. Logos, drawings and project photos can be uploaded. |
table: cw_game_scores | OK Found. Class leaderboards work. |
column: cw_level_settings.journeyman_open | OK Found. |
column: cw_level_settings.slam_open | OK Found. |
column: cw_level_settings.dust_run_open | OK Found. |
column: cw_level_settings.sweep_up_open | OK Found. |
column: cw_level_settings.top_shelf_open | Fix Missing, so opening Top Shelf to a level will not save. Run db/games.sql in the Supabase SQL editor. It is safe to run twice. |
column: cw_level_settings.shop_run_open | Fix Missing, so opening Shop Run to a level will not save. Run db/games.sql in the Supabase SQL editor. It is safe to run twice. |
table: cw_build_scores | OK Found. Project rubric scores can be saved. |
column: cw_level_settings.projects_open | OK Found. |
column: cw_students.school_id | OK Found. |
column: cw_classes.level | OK Found. |
column: cw_classes.tax_rate | OK Found. |
column: cw_page_settings.open_on | OK Found. |
column: cw_classes.signups_open_until | OK Found. |
column: cw_students.pin_locked_until | OK Found. |
column: cw_assignments.due_on | OK Found. |
column: cw_classes.template_id | OK Found. |
column: cw_assignments.kind | OK Found. |
column: cw_assignments.unit_keys | OK Found. |
column: cw_assignments.question_count | OK Found. |
column: cw_attempts.deadline_at | OK Found. |
column: cw_assignments.graded | OK Found. |
column: cw_ai_usage.cost_usd | OK Found. |