
AccuServe is a SaaS app for doctors and clinics. The Go backend stores the data, handles JWT auth and works out the analytics. Doctors use it through an Ionic/Angular PWA built for phones first.
Key Features
- Patients: register, search and manage patient records, with full history
- Consultations: each visit records the diagnosis, protocol, fees and remarks
- Analytics: charts of visit trends, registration counts and per-patient statistics
- OTP login: JWT auth, with an SMS one-time password for resetting a password
- Offline support: the Angular service worker keeps the PWA usable on poor connections
- Multi-tenant: the client, clinic and doctor come from the JWT session
Tech Stack
- Go + Chi for the REST API
- GORM + PostgreSQL for data persistence
- GraphJin for compiled GraphQL queries
- Ionic 5 + Angular 12 for the PWA frontend
- Chart.js for the analytics charts
- Capacitor for native mobile builds
- Jaeger for distributed tracing
Deployment
- Go binary deployed on a VPS running Alpine Linux
- Caddy reverse proxy for HTTPS and routing
- PostgreSQL running in Docker, backed up via pgBackRest on a cron schedule
- Backups go to both S3-compatible object storage and block storage