Development Guide¶
Day-to-day commands and workflows for developing Open CIS.
Running Development Servers¶
Testing¶
Python API Tests¶
Frontend Tests¶
Code Quality¶
Python¶
Frontend¶
Database Operations¶
After Prisma Schema Changes¶
Browse Database¶
Create Migration Without Applying¶
Docker & Infrastructure¶
Check Container Status¶
View Logs¶
Rebuild a Service¶
EHRBase Operations¶
Check Status¶
List Templates¶
Create an EHR Manually¶
curl -X POST http://localhost:8080/ehrbase/rest/ehr \
-H "Content-Type: application/json" \
-H "Prefer: return=representation"
Coding Standards¶
| Language | Standard |
|---|---|
| Python | Type hints required everywhere (enforced by mypy), all functions async |
| TypeScript | Strict mode enabled, no implicit any |
| HTTP | Use httpx.AsyncClient for async requests (never requests) |
| Database | Prisma client is async-only (interface = "asyncio") |