apopt.comCBE 493R Data-Driven Athletics

Course / Build Lab

Build Lab

One app, fourteen steps. Each chapter adds one step to the app you carry all term; it becomes the start of your team project. JavaScript or TypeScript with Vite; everything runs in the browser, so no athlete data leaves the device.

JavaScript for people who just learned Python

  1. B-1An empty page online — Week 1. Vite project with an AI assistant, deployed to a static host.
  2. B-2A form and a table — Week 2. Input form, a pure function, a results table.
  3. B-3Click three points, read an angle — Week 3. Image on a canvas, pointer events, vector maths for a joint angle.
  4. B-4A CSV file on a canvas — Week 4. File input, parsing, plotting a time series.
  5. B-5Heart rate from a file, then live — Week 5. RR intervals and HRV from a file, then Web Bluetooth to the chest strap; first unit tests.
  6. B-6An activity file on a map — Week 6. FIT/GPX/TCX parsing, distance and pace, a map.
  7. B-7A sensor checker — Week 7. The five questions for any new sensor as a small tool (in class).
  8. B-8Your own overlay — Week 8. Pose model in the browser, skeleton overlay on video.
  9. B-9An event detector — Week 9. Contact and toe-off events from keypoints.
  10. B-10A trial table — Week 10. Several results files at once: best, mean and scatter.
  11. B-11A baseline on the device — Week 11. Store an athlete's baseline locally, flag a real change.
  12. B-12Consolidate: a working app — Week 12. One decision, a PDF report, tests, privacy by design, user testing.
  13. B-13The report in your app — Week 13. Plain-language findings with stated uncertainty.
  14. B-14The showcase checklist — Week 14. Final checks before showing the app.

How every step works

The book's build-step text, a live reference version, a starter (or the previous step), numbered steps with checkpoints, a "break it on purpose" exercise, the tests that must pass, and an AI Studio block using the book's method: Specify → Generate → Verify → Defend.

The chest-strap step works without a strap: a simulator replays the instructor's recordings through the same code, and you can load a recorded file. Web Bluetooth needs Chrome or Edge on a computer or Android phone.