Skip to content
milon27.
← All work

Web app + payments

A hearing-loss questionnaire and personal report

People with hearing loss needed a private way to describe daily life with it. I built the anonymous questionnaire, the PDF report and the admin area behind it.

Client
A hearing-loss support website
My role
Full-stack developer
Timeline
3 months
When
2024 — 2025

The situation

Hearing Loss Profile is a website where people with hearing loss answer a questionnaire about their daily life and get a personal report back. That sounds simple, but the problem it solves is a real one.

A hearing test shows what the ears can pick up. It doesn’t show what living with hearing loss is actually like. Someone might manage fine on the phone but find a busy café impossible, or rely on lip reading in meetings. That’s hard to explain clearly in an appointment, and almost nobody has it written down to share.

The product had to work for two groups. People taking the questionnaire needed something private and easy to finish, with no account required for such a personal topic. The team running the site needed to change the questions, sell the full report, and see how it was being used, all without a developer.

What I built

  • An anonymous questionnaire. People never have to say who they are. They start with an “About You” section covering the hearing devices and support they use. Then they rate situations on a colour-coded slider from “Impossible” to “Easy”. Any question can be marked “Not relevant to me”, whole sections can be skipped, and a progress bar shows how far along they are.
  • A personal visual report. Answers are grouped by section and turned into a downloadable PDF, with a chart for each section. You can see at a glance where things are easy and where they’re hard.
  • A free preview and a paid full report. Anyone gets the first section for free. The full report is unlocked with a one-off card payment. Coupon codes give a discount, and a 100% coupon skips payment entirely. The report unlocks only once the payment provider confirms the payment, not when someone lands on a “thank you” page.
  • An admin area for the team. Admins build and reorder the questionnaire themselves, write the report’s title and introduction, and create and expire discount codes. They also see every order and get a dashboard of earnings, completed questionnaires and users, with daily trends for the last month.
  • Secure admin accounts. Sign-in includes email verification and password-reset codes, with limits on how many codes can be requested so the feature can’t be abused.

The result

  • A working product with a public questionnaire and an admin area, built and deployed in about three months.
  • A paid report that unlocks itself after payment, so nobody has to check payments and grant access by hand.
  • A questionnaire and report the team can change themselves, with no developer needed.
  • One place to see earnings, activity and orders.

For the technically minded

The back end is Node.js, Express and TypeScript on MySQL 8 (through Drizzle ORM), with Redis for sessions and rate limiting. Payments go through Stripe Checkout. A signed webhook records each payment and unlocks the report in a single database transaction, and the paywall is enforced on the server, so changing the page can’t unlock it. The front end is React and TypeScript with Vite and Tailwind, and the PDF reports are generated in the browser with jsPDF and Chart.js. Both apps run in Docker. Pushing to production triggers a GitHub Actions pipeline that builds the image, publishes it and redeploys to the server, with database migrations running automatically on start-up.

Role and timeline

Full-stack developer, late November 2024 to late February 2025, as part of a team of three developers.

What this involved

  • Healthcare
  • Questionnaire
  • Payments
  • Admin dashboard
  • PDF reports

Got a problem like this one?

Tell me the problem in plain English. I will tell you honestly whether I can help, and what it would take. No obligation.

Prefer email? immilon27@gmail.com