Skip to content

About

Formative grading for Ross Program courses: submissions, ink and TeX feedback, no points.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

grade.rossprogram.org

Formative grading platform for Ross courses. See PLAN.md for the product and ARCHITECTURE.md for the design.

Status

Build step State
1. Pen and PDF spike Done; awaiting measurements on a real iPad (/spike)
2. Login, courses and roster, assignments, submit, download, bulk export Done
3. Notes, realtime, reviewed marks, return, student view Done
4. TeX compilation on Lambda Done, deployed
5. Problem splitting and the per-problem view Done (model calls need credentials and a course's AI switch)
6. Progress grid and needs attention Done
7. Comment bank, chat, external-editor endpoints Done

Layout

packages/
  shared/   Yjs feedback-layer schema and validator
  server/   Fastify web process: API, auth, migrations (src/, migrations/, test/)
  worker/   pg-boss job handlers (process-submission, send-email)
  client/   React app: grading view at /grade/:submission; the pen spike at /spike

Development

Needs Node 24 and Docker.

npm install
npm run services     # Postgres on :54329, RustFS (S3) on :9000
npm run seed         # sample course, staff and students (prints the emails)
npm run dev          # web :3000, worker, client :5173 (proxies /api)

# Optional, for .tex submissions and problem sets (a 5 GB image):
npm -w @grade/tex-lambda run build:image
docker compose --profile tex up -d

Open http://localhost:5173 and sign in with a seeded email. In development the login code is printed in the web output instead of being emailed.

To make yourself a superuser on any database:

npm -w @grade/server run cli -- superuser you@example.org "Your Name"
npm test             # shared + server (server tests need the Postgres service)
npm run typecheck

End-to-end (real browsers against the dev stack; needs npm run services, starts npm run dev if it isn't running, and uses the system Chromium when there is one):

npm run test:e2e

It signs a student and a grader in through the login form, submits a PDF, inks, writes a TeX note, returns, checks what the student sees, and checks that a later edit reaches the student's open page live.

Server tests create and drop a throwaway database per run, and use in-memory storage, mail and jobs; they cover the authorization rules in ARCHITECTURE.md §3.

Testing on an iPad

  1. Copy .env.example to .env and set S3_PUBLIC_ENDPOINT to this machine's LAN address (for example http://192.168.1.20:9000), so upload and download URLs work from the iPad.
  2. npm run dev, then open http://<LAN address>:5173/ in Safari (iPadOS 17.4+).
  3. The pen spike is at /spike. Pencil draws, fingers scroll. The latency box reports, per stroke, the sample rate and input→draw and input→next-frame times. Those cover our code only; glass-to-glass latency needs a slow-motion camera. A second tab on the same PDF acts as a second grader.

Things to judge on the device: Pencil latency and pressure feel; palm resting while writing; no scroll, selection or magnifier from the Pencil; finger scrolling stays smooth with many strokes; memory on long scans.

Production

AWS account 610450925177, us-east-2, defined in packages/infra (CDK). Always use the ross-deploy profile; the default profile is the root key.

Piece What
Web host EC2 t4g.small (Amazon Linux 2023), web + worker under systemd, Caddy for TLS; no SSH (Systems Manager only)
Database RDS Postgres 17, private, TLS required, 35-day backups, deletion protection
Files Private S3 bucket, versioned, CORS only for https://grade.rossprogram.org
TeX Lambda grade-tex from packages/tex-lambda: a role with no permissions; TeX can't reach the network or run commands; invoked only by the host's role
Mail SES in us-east-1 from ross@rossprogram.org
Secrets Secrets Manager: grade/db, grade/app, grade/anthropic
export AWS_PROFILE=ross-deploy
npm -w @grade/infra run diff          # what would change
npm -w @grade/infra run deploy        # infrastructure (builds and pushes the TeX image)
npm -w @grade/infra run deploy-app    # ship the current tree to the host
npm -w @grade/infra run remote -- superuser you@example.org "Your Name"
npm -w @grade/infra run remote -- logs

To turn on problem splitting, store an Anthropic API key: aws secretsmanager put-secret-value --secret-id grade/anthropic --secret-string <key> and redeploy the app (or restart it).

About

Formative grading for Ross Program courses: submissions, ink and TeX feedback, no points.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages