Context
In 2020 I built the offline quiz and essay grader in the admin console as my first feature at the company. I was the primary developer. Teachers use it to grade handwritten answers.
The problem
Schools needed teachers to grade handwritten and essay answers inside the platform. I was new to the admin codebase, and the grading needed an in-browser PDF viewer with annotation.
What I did
I built evaluator assignment and answer-sheet lists by course, quiz and section.
I added PDF annotation, edit and save, using a vendored PDF viewer, with the viewer libraries hosted on object storage.
I built filters, pagination, pending counts and sub-admin roles.
I shipped several hotfixes after launch. In 2022 annotations were temporarily disabled.
Key decision
I embedded a third-party PDF viewer instead of writing annotation myself. That let a new joiner ship in months.
The cost was dependence on a vendored library and its hosting.
Result
The grader shipped within about 3 months of my first admin commit. The first big pull request had 41 of 51 commits from me and about 7.3k lines. Teachers grade in the browser.
What I learned
I would again lean on a proven viewer rather than write annotation myself.
Stack
- React
- TypeScript
- PDF.js Express
- Object storage
