A short, research-informed course for parents and caregivers of adults with ADHD. It is educational, not medical advice. Each module links to its own peer-reviewed research source and a separate quiz with three questions; all must be answered correctly to complete it. Complete every quiz to unlock a diploma and a playful pretend password.
Install Node.js, then run npm ci and npm run serve. Visit http://127.0.0.1:4173. For development with automatic browser refresh when site HTML, CSS, JavaScript, or SVG changes, use npm run watch instead; no Docker rebuild is needed. To use another port, run npm run watch -- --port 4174 and visit http://127.0.0.1:4174. Alternatively set the PORT environment variable; the --port flag takes precedence. JavaScript is required for the interactive course. These local servers are for development only.
Use the Dark mode or Light mode button in the header to change the theme. Light mode is the default; your choice is saved in this browser, separately from your resume link.
Copy the resume link after navigating or completing a quiz; an older saved link retains its older progress. Links work as /<token> or /#<token> (under the site base path on GitHub Pages) and do not require an account or server-side storage. Links track the module, lesson/quiz/diploma view, and completed quiz versions, not names or quiz answers; they do not save scroll position or unsubmitted answers. Older links are upgraded when opened. If a quiz has changed, its completion is reset. The oldest links cannot identify which quiz version was completed, so their completed quizzes must be retaken. If a module was removed, the course opens at the first module and explains the change. Links are not secret, encrypted, or tamper-proof: anyone holding one can inspect or change it. The diploma's pretend password is only a joke, not a credential. URLs may appear in browser history, logs, or messages, so share carefully. Invalid links start a fresh course with a message. The Docker deployment uses the domain root and a fallback to index.html.
Use Reset course progress and confirm to start again. Your theme choice is unchanged, and previously saved resume links still work.
The Pages workflow builds and deploys the static site on pushes to main. Enable GitHub Pages with GitHub Actions as the source. npm run build:pages writes the project-site build to dist; set PAGES_BASE_PATH to an absolute directory path ending in / for another deployment path. GitHub Pages serves the app's 404.html for path-style resume links, so these requests retain a 404 HTTP status even when the course opens successfully; fragment links avoid that status.
Run npx playwright install chromium once and npm test for unit, keyboard, screen-reader-facing role/name, and axe accessibility checks across modules and feedback states. npm run format formats files; npm run check checks formatting and JavaScript syntax. Install the real pre-commit framework (for example with uvx pre-commit install) and run uvx pre-commit run --all-files. The hooks require Node, npm ci dependencies, Docker for hadolint and actionlint, and network access for the initial tool downloads. Automated checks do not replace testing with a screen reader.
Run docker compose up --build and visit http://127.0.0.1:8080. For Docker development, docker compose watch rebuilds and restarts the container when site files, nginx.conf, or the Dockerfile change. It does not refresh the browser automatically; reload the page yourself. For automatic browser refresh without rebuilding, use npm run watch instead. The example runs unprivileged with a read-only root filesystem, a temporary writable /tmp, all capabilities dropped, and no new privileges. Alternatively: docker build -t alongside . then docker run --rm -p 127.0.0.1:8080:8080 --read-only --tmpfs /tmp:rw,noexec,nosuid,size=16m --cap-drop ALL --security-opt no-new-privileges alongside. Terminate TLS at a trusted reverse proxy in production. The image serves on port 8080 and exposes /health.
The GitHub workflow publishes ghcr.io/shplack/adhd-course:latest for amd64 and arm64 on pushes to main. Pull requests build without publishing; version tags also produce version and commit-SHA image tags. To run the published image:
docker pull ghcr.io/shplack/adhd-course:latest
docker run --rm -p 127.0.0.1:8080:8080 --read-only --tmpfs /tmp:rw,noexec,nosuid,size=16m --cap-drop ALL --security-opt no-new-privileges ghcr.io/shplack/adhd-course:latestFor production, pin the image by digest. Anonymous pulls require the package's GitHub visibility to be public.
- Faraone SV et al. (2021). The World Federation of ADHD International Consensus Statement: 208 Evidence-based Conclusions about the Disorder. Neuroscience & Biobehavioral Reviews.
- Stevens AE et al. (2023). Transitioning to college with ADHD: a qualitative examination of parental support and the renegotiation of the parent-child relationship. Current Psychology. Small qualitative study of 11 college students; findings may not generalize to all adults.
- Safren SA et al. (2010). Cognitive Behavioral Therapy vs Relaxation With Educational Support for Medication-Treated Adults With ADHD and Persistent Symptoms: A Randomized Controlled Trial. JAMA.
- Cortese S et al. (2018). Comparative efficacy and tolerability of medications for attention-deficit hyperactivity disorder in children, adolescents, and adults: a systematic review and network meta-analysis. The Lancet Psychiatry.