Dashboard Modernization in Legacy Codebase by Wahid AliDashboard Modernization in Legacy Codebase by Wahid Ali

Dashboard Modernization in Legacy Codebase

Portfolio project
Wahid Ali

Dashboard Modernization in Legacy Codebase

Legacy rescue: a new React dashboard shipped inside a Node.js 10 codebase without breaking the live v1.
Aflog is a content marketplace connecting brands with creators. They needed a modernized dashboard without disrupting their existing system running on Node.js 10.
aflog.in - Homepage
aflog.in - Homepage

What Made This Hard

The new dashboard had to live alongside the old one. Dashboard v2 needed to exist in the same codebase as v1. Same application, same routing system. Users would access each version through different routes, but the code had to coexist without conflicts.
I couldn't touch v1. Any changes to shared dependencies or routing logic could break the production dashboard that brands and creators relied on daily. The new code had to integrate without refactoring existing patterns.
Node.js 10 doesn't run on modern machines. The legacy version is incompatible with modern development environments. Dependency conflicts and version issues made local development impossible without workarounds.

How I Built It

I containerized the entire application with Docker Desktop. The Dockerfile installs Node.js 10, all legacy dependencies, and replicates the production environment exactly. This gives every developer a working local setup without installing outdated Node versions.
For the architecture, I created a separate directory structure for v2 using React functional components with hooks. v1 uses class components with lifecycle methods. Both exist in the same codebase without touching each other's files.
I extended the existing React Router configuration to handle both versions. New routes point to functional components; legacy routes point to class components. The router directs users to the appropriate dashboard based on their URL.
For API integration, I built a custom service layer using hooks that wrap the existing API calls. The layer handles authentication, request formatting, and response parsing, translating between functional component patterns and APIs designed for class components.
Architecture: v1 and v2 share one codebase and router without touching each other.
Architecture: v1 and v2 share one codebase and router without touching each other.

Results

The Docker setup gives any developer a working Node.js 10 environment in one step
v1 kept running without issues while v2 was built and deployed
Functional components with hooks coexist cleanly with legacy class components
Zero-touch approach meant no risk to production features

Tech Stack

Frontend: React, JavaScript, React Router, SCSS
Backend: Django
Containerization: Docker

Link


Stuck with an old codebase you can't safely change? I'm happy to take a look.

1 like · 11 views · Jan 25, 2026

Content marketplace with 25,000+ creators. Built Dashboard v2 in React inside the legacy Node.js 10 app, without touching the live v1.

Tags