Mãe da Prole Platform — Distributed Web, Terraform IaC & Kotlin
End-to-end Full-Cycle engineering case study bridging the distributed web platform and native Android applications dedicated to maternal care between doulas and expectant mothers. The ecosystem coordinates 5 repositories via Git Submodules and GitFlow (162 merged Pull Requests) — uniting a Java 17 / Spring Boot 3.2 REST API, a Vue 3 SPA, Strapi Headless CMS, PostgreSQL 14, Terraform cloud provisioning, and containerized Cypress E2E testing — alongside native Kotlin (MVVM & Room) mobile apps.
- Public Mobile Repository (Android): github.com/evslopes/MDP-Android
1. Multi-Repository Decomposition & GitFlow Governance
To let transactional business rules, editorial publishing, and frontend UX evolve independently without monolithic coupling, the platform was split across five repositories coordinated through an umbrella Git Submodules workspace:
| Repository / Module | Core Stack | Architectural Role & Delivery Governance |
|---|---|---|
projeto-site-mdp | Git Submodules, GitHub Actions, GitLab CI | Umbrella orchestrator centralizing GITFLOW.md, BRANCHING_STRATEGY.md, and E2E quality reports (74 merged PRs) |
maedaprole-backend | Java 17 (Temurin), Spring Boot 3.2.2, JPA, Spring Mail | Transactional REST API, authenticated SMTP dispatch, and relational persistence (44 merged PRs) |
maedaprole-infra | Docker Compose, Dockerfile.cypress, Terraform (~> 5.0) | Virtual network isolation (maedaprole_network), E2E runner container, and declarative Heroku + Postgres provisioning (25 merged PRs) |
maedaprole-frontend | Vue 3, Vite, TailwindCSS, Cypress | Responsive SPA integrated with Spring Boot and Strapi, backed by automated route and UI verification (13 merged PRs) |
maedaprole-cms | Strapi Headless CMS, Node.js, Docker | Autonomous management of courses, blog articles, and editorial webhooks decoupled from frontend deployments (6 merged PRs) |
2. Virtual Network Isolation & Infrastructure as Code (Terraform)
On the DevOps and reliability front, services (Backend :8080, Frontend :3000, and Strapi :1337) share an internal postgres:14-alpine instance bound strictly inside maedaprole_network — preventing direct WAN database port exposure — while Terraform modules codify repeatable cloud app and managed PostgreSQL provisioning:
Clients
Vue 3/Tailwind SPA & Kotlin Apps
Application Tier
Spring Boot 3.2 & Strapi CMS
Closed Virtual Network
maedaprole_network
Relational Core
PostgreSQL 14 Alpine
Cloud Provisioning
Terraform IaC & Secrets
Continuous Quality
Dockerfile.cypress + Actions
# Excerpt of internal virtual-network service isolation (Docker Compose)
services:
backend:
image: evslopes7/maedaprole-backend
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/mae_da_prole_dev
- SPRING_PROFILES_ACTIVE=prod
depends_on: [postgres]
networks: [maedaprole_network]
strapi:
image: evslopes7/maedaprole-cms
environment:
DATABASE_CLIENT: postgres
depends_on: [postgres]
networks: [maedaprole_network]
frontend:
image: evslopes7/maedaprole-frontend
depends_on: [backend]
networks: [maedaprole_network]3. Native Mobile Ecosystem (Kotlin, MVVM & Room)
On Android, the platform supports expectant mothers through two native Kotlin applications built with MVVM separation of concerns:
- Mãe da Prole Companion App (MDP-Android): Structured physiological and emotional journaling ("Meu Dia") for daily symptom and trimester tracking shared with the doula, paired with a curated educational feed ("Minha Inspiração").
- Native Contraction Timer Utility: Dedicated offline-first labor utility engineered with Kotlin, Room Database (
ContractionDao), reactive ViewModel state, and haptic feedback for accurate duration, interval, and clinical history tracking.
4. Containerized End-to-End QA (Cypress + GitHub Actions)
- Dedicated QA Runner (
Dockerfile.cypress): Rather than relying on brittle host-machine browsers, the Cypress E2E suite runs inside the Docker Compose network on every Pull Request to verify responsive rendering, live REST integration across Vue 3, Spring Boot 3.2, and Strapi, and static asset delivery prior to release.
Inspect the public Kotlin Android repository or dive into our other Java 17 Clean Architecture and distributed microservices case studies.