Empowering healthcare systems with cloud-enabled, offline-first patient data management.
Built with the MERN Stack to support UN SDG 3 — Good Health and Well-being.
AfyaCloud is a full-stack MERN application that provides a reliable, cloud-based solution for storing, syncing, and analyzing patient data across healthcare facilities in Kenya — regardless of internet connectivity.
It’s built to solve critical healthcare data challenges:
- Poor connectivity in rural hospitals
- Loss or misuse of medical devices
- Inefficient, outdated EMR systems
- Data delays affecting patient care
AfyaCloud ensures secure, real-time, and interoperable health data management — even in low-resource settings.
Click here to view the live app
Frontend:
- React
- TailwindCSS
- Axios
- React Router
- React Toastify
- Socket.io-client
Backend:
- Node.js + Express
- pgsql # soon to migrate that to MongoDB
- JWT Authentication
- Socket.io
Deployment:
- Frontend → Netlify
- Backend → Render
| Feature | Description |
|---|---|
| Offline-First Access | Data stored locally via IndexedDB/SQLite and auto-synced when online. |
| Cloud Sync API | RESTful APIs built with Express.js and MongoDB Atlas. |
| Secure Compression | Protects patient data while minimizing bandwidth usage. |
| Analytics Dashboard | Real-time insights into system performance and patient care. |
| Device Tracking | Monitors usage and accountability for hospital devices. |
| User-Friendly Interface | Responsive design built with React.js + Tailwind CSS. |
| Layer | Technology |
|---|---|
| Frontend | React.js, Vite, Tailwind CSS |
| Backend | Node.js, Express.js |
| Database | MongoDB Atlas (Mongoose ORM) |
| Authentication | JWT / OAuth2 |
| Offline Storage | IndexedDB / SQLite |
| Hosting | Render / Vercel / Netlify |
| Version Control | Git & GitHub |
Make sure you have:
- Node.js (v18+)
- MongoDB Atlas account or local MongoDB
- Git installed
- Code editor (VS Code recommended)
-
Clone the repository
git clone https://github.com/codewin1/afyacloud.git cd afyacloud -
Install dependencies
npm install npm run dev
or
navigate to the [live app](https://afya-cloud-system.netlify.app/) to access the site easily. create an account -
Create an
.envfile inside the/serverfolder:MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key PORT=5000
-
Visit the frontend app:
http://localhost:5000
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/patients |
Add new patient record |
GET |
/api/patients |
Fetch all patients |
PUT |
/api/patients/:id |
Update patient data |
DELETE |
/api/patients/:id |
Delete patient record |
GET |
/api/analytics |
Fetch dashboard data |
POST |
/api/auth/login |
Authenticate user |
Test endpoints easily using Postman or Thunder Client.
AfyaCloud supports the United Nations Sustainable Development Goal 3 by:
- Enabling efficient health data access across counties.
- Reducing errors caused by data backlog or device loss.
- Empowering health workers through reliable digital tools.
- Promoting interoperability between hospitals and national health databases.
| Stage | Goal | Target |
|---|---|---|
| MVP | Core platform with patient data & device tracking | Q1 2026 |
| Pilot | Kirinyaga Level 5 Hospital rollout | Q2 2026 |
| Beta | Expansion to 3 counties | Q3 2026 |
| Scale | National integration and AI analytics | 2027 |
AfyaCloud follows a tiered SaaS model:
- Free tier for small clinics
- Pro tier for hospitals and health centers
- Enterprise tier for NGOs, health agencies, and data systems
Add-ons include:
- Custom APIs
- Advanced analytics dashboards
- Secure reporting tools
Contributions are welcome!
- Fork the project
- Create your feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License — feel free to use and modify it with proper credit.
** Edwin Murimi**
Founder & Lead Developer – AfyaCloud
Special thanks to:
- The Power Learn Project community
- Kenyan healthcare professionals contributing to digital health adoption
- Mentors and peers supporting innovation toward SDG 3: Good Health and Well-being
AfyaCloud — Transforming Healthcare, One Patient Record at a Time.



