Back to Work
Case Study
Enterprise B2B Platform
Took a legacy codebase everyone was afraid to touch and turned it into a system the team actually enjoys working on.
ReactNode.jsPostgreSQLTerraform
The Challenge
The codebase had a reputation. SQL queries lived next to UI components. Validation happened... sometimes. Tests? What tests? Nobody wanted to touch it, but the business needed new features yesterday.
My Approach
I didn't propose a rewrite—that's how projects die. Instead, I introduced boundaries gradually. Clean Architecture emerged one module at a time. Every PR shipped value while improving the foundation underneath.
Key Contributions
- Migrated flat file structure to Clean Architecture (controllers → services → repositories)
- Replaced manual validation with Zod schemas and type inference
- Built background job system with pg-boss for async operations
- Architected modular CI/CD with reusable GitHub composite actions
- Implemented security scanning (Gitleaks, npm audit, Trivy)
- Designed multi-environment Terraform architecture with state isolation
- Established Playwright E2E testing with Page Object pattern and 4-way sharding
Impact
- New developers ship features in their first week
- CI runs only what changed—deploys are fast again
- Bug rate dropped as test coverage climbed
- Security vulnerabilities caught before they reach production
- Infrastructure changes are reviewed like code, not YOLO'd
Tech Stack
Frontend
React 18Material-UIViteTypeScript
Backend
Express.jsNode.jsTypeORMZod
Database
PostgreSQLpg-boss
Testing
JestPlaywrightSupertest
Infrastructure
Azure Container AppsTerraform
CI/CD
GitHub ActionsNx
Want to see more projects like this? Connect with me on social media.
Connect on LinkedIn