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