Migrating Legacy Systems to Modern Web Frameworks: A Future-Ready Approach