Inspiration
Doctor7 is a hosted care service for psychologists. Many clinics and universities cannot send clinical data to a public cloud: they must run it on their own servers, under their own operating system rules. We asked a simple question: can we rebuild that service so it runs on one Debian server, with Apache and MariaDB, and no containers?
What it does
doctor7-onprem lets a clinic run a psychological care platform on its own Debian machines.
- Professionals schedule appointments, start the video meeting, write consultation notes and chat with their client.
- Clients see their own appointments and records, join the same video room their professional started, and chat.
- Administrators manage the appointments of their center. Auditors read an append-only audit log that holds no clinical text.
- Video uses two providers behind one interface. New meetings in the public demo open in self-hosted Jitsi, inside the appointment window. The professional and patient can join the same room from the appointment. We also tested a configuration that starts with simulated Google Meet and falls back to Jitsi during a simulated outage.
How we built it
Kiro CLI agents wrote the code, task by task. Each task had a written contract, and from the sixth on each began with a specification in .kiro/specs/. The API is Node.js 22 with Express over MariaDB, with reversible SQL migrations. The web client is React with Vite and self-hosted fonts. Everything installs from Debian packages (.deb) with systemd units and an Apache virtual host. A Jitsi server runs on the same Debian host. A smoke script walks the whole flow end to end. After deployment, a separate Kiro agent used MCP to check the interface at three screen widths. The public demo uses synthetic data.
Challenges
- The hosted version was built around cloud services, so data access, sessions, chat and video all had to be rebuilt for SQL and Apache.
- Our first task contracts asked for shell commands the Kiro role does not allow, so two attempts stopped. We fixed the contracts, not the guardrails.
- A Kiro agent found that our video meeting was not stored: each click created a new room and the client could never join. We fixed it with a stored meeting per appointment.
- Browsers can send two session cookies with the same name. We made the API try each one.
What we learned
Small written contracts, a specification first, and an independent check on a real Debian virtual machine caught problems that unit tests alone missed.
What's next
Real federated sign-in, the real Google Meet service, email, and a load test. The demo replaces these with simulations, and the repository says so.
Built With
- apache
- debian
- express.js
- google-meet
- jitsi
- kiro
- mariadb
- node.js
- openid-connect
- react
- systemd
- vite