ENGINEERING CASE STUDY

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.

162 PRs GitFlow Governance Across 5 Repos
Java 17 + Vue 3 Spring Boot 3.2, Strapi & Postgres
Docker + IaC Isolated Network & Terraform
Cypress + Kotlin Containerized E2E & MVVM Apps

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 / ModuleCore StackArchitectural Role & Delivery Governance
projeto-site-mdpGit Submodules, GitHub Actions, GitLab CIUmbrella orchestrator centralizing GITFLOW.md, BRANCHING_STRATEGY.md, and E2E quality reports (74 merged PRs)
maedaprole-backendJava 17 (Temurin), Spring Boot 3.2.2, JPA, Spring MailTransactional REST API, authenticated SMTP dispatch, and relational persistence (44 merged PRs)
maedaprole-infraDocker Compose, Dockerfile.cypress, Terraform (~> 5.0)Virtual network isolation (maedaprole_network), E2E runner container, and declarative Heroku + Postgres provisioning (25 merged PRs)
maedaprole-frontendVue 3, Vite, TailwindCSS, CypressResponsive SPA integrated with Spring Boot and Strapi, backed by automated route and UI verification (13 merged PRs)
maedaprole-cmsStrapi Headless CMS, Node.js, DockerAutonomous 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:

Stage 01

Clients

Vue 3/Tailwind SPA & Kotlin Apps

Stage 02

Application Tier

Spring Boot 3.2 & Strapi CMS

Stage 03

Closed Virtual Network

maedaprole_network

Stage 04

Relational Core

PostgreSQL 14 Alpine

Stage 05

Cloud Provisioning

Terraform IaC & Secrets

Stage 06

Continuous Quality

Dockerfile.cypress + Actions

yaml
# 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.
Explore the Mobile Source & Related Backend Cases

Inspect the public Kotlin Android repository or dive into our other Java 17 Clean Architecture and distributed microservices case studies.