E-Gratifikasi
Legacy Platform Modernization Across a Three-Repository Enterprise Suite (E-Gratifikasi)
Lead Backend Engineer · PT Sarana Multi Infrastruktur (Persero)
Planned and executed the full modernization of the E-Gratifikasi platform, an enterprise gratification-reporting system composed of three interdependent repositories: a .NET REST API, a public-facing landing site, and an administrative CMS. Every layer of the stack had reached end-of-life — .NET 7, Nuxt 3, Nuxt 2 with Vue 2 and Node 14 — and none of the repositories carried automated tests. The engagement ended with all three services running on supported runtimes, a proven regression baseline, and a documented backlog of security findings surfaced along the way.
Key deliverables and achievements:
• Modernized the backend API from .NET 7 (end-of-life) to .NET 10 LTS, resolving dependency conflicts across 20+ packages — including removing a stray EF6 library that had been silently pulling the legacy ORM into an EF Core codebase, and adapting Swagger, Hangfire, EPPlus, and AutoMapper to their current APIs.
• Migrated the CMS — 129 pages and components, roughly 48,000 lines, entirely written in the Vue 2 Options API — from Nuxt 2 / Vue 2 / Element UI to Nuxt 4 / Vue 3 / Element Plus, without rewriting business logic page by page.
• Designed a three-layer migration strategy to de-risk the Vue 2 transition: a compatibility plugin emulating the Nuxt 2 runtime surface ($axios across 181 call sites, $auth, Vuex, event bus, and the legacy fetch() hook in 66 components); codemods for mechanical template changes across 80+ files; and targeted manual fixes driven by real browser testing.
• Upgraded the landing site from Nuxt 3.6 to Nuxt 4.6 and Node 18 to Node 24, replacing deprecated module ecosystems and resolving server-side timer leaks that had accumulated one interval per request.
• Diagnosed and fixed a class of defects invisible to server-side-only testing: a hydration failure where reactive refs in API queries produced divergent cache keys between server and client, silently degrading every page to its fallback state — caught only once the application was opened in a real browser.
• Repaired pre-existing bugs that had shipped to production, including a seeder that failed silently for years (leaving the administrator role unprovisioned and returning 403 across all modules), a PDF generator that crashed on fixed-size memory streams, and user search returning 500 after the query engine hardened its default parsing rules.
• Preserved behavioural parity where frameworks diverged by design: Nuxt 2 silently tolerated self-redirects that Nuxt 4 treats as infinite loops, allowed layout-scoped middleware that no longer exists, and mapped missing layouts to a default — each difference reproduced explicitly rather than left to chance.
• Established the project's first regression baseline: 70 migrations validated against an empty database, all 48 CMS routes traversed without runtime errors, and an end-to-end report creation flow verified through submission, approval visibility, and PDF/Word export.
• Surfaced and documented three unaddressed security exposures found during the audit — an operations dashboard and error log reachable without authentication, production secrets committed to the repository, and a raw SQL injection path in the HRIS lookup — each with a concrete remediation path.
• Produced a full upgrade dossier covering version matrices, migration rationale, rollback considerations, licensing decisions for commercial dependencies, and a prioritized follow-up backlog, enabling the team to deploy and validate independently on the development server.