How minhtumtn/theduckhospital works
• Clients: Separate the client applications clearly:
• Web Client (ReactJS web app)
• Mobile Client (React Native app)
• SMS OTP Android App for authentication
• Back-end Server: Java Spring Boot REST API that includes multiple layers (controllers, services, repositories, security, error handling) managing different domain models (patients, staff, appointments, medical records, etc.).
• Database: Microsoft SQL Server handling persistent storage.
• External Services: Show integrations with external systems:
• Cloudinary (for file and image storage)
• Microsoft Graph API (used to generate and manage email accounts for staff)
• Google App Password/Email service (for sending OTP emails)
• CI/CD Tools: These include GitHub workflows for Firebase hosting, Jenkins (as defined by Jenkinsfile), and Docker (using Dockerfile) to containerize/deploy components.
• Automation Testing: Automation test modules and scripts (the automation-test folder) that ensure system integrity.
Relationships and interactions
• That the back-end communicates with the database for data persistence.
• Back-end making outbound calls to external services (Cloudinary, Microsoft Graph, and Gmail/OTP service).
• Optionally, illustrate the CI/CD pipeline – from code commit to automated testing and deployment (using GitHub, Jenkins, Docker, Firebase hosting).
Important architectural patterns and design principles
• Layered architecture and separation of concerns: Highlight the Controller-Service-Repository pattern in the Spring Boot back-end.
• Security aspects: Illustrate the use of JWT, custom user details, and security configuration.
• Front-end separation: Differentiate between web and mobile clients and show how they interface with the same API.
• Integration and configuration management: Show how environment-specific configurations (like application.properties for the back-end and the .env file for web clients) are used.