Migration & Refactoring·2026
EGEMEN.KZ — Media Platform Migration
Full migration of the Kazak Gazetteri media holding platform from the legacy Laravel 5.8/PHP 7.1/MySQL stack to modern NestJS 11/Next.js/PostgreSQL 16/Docker. Zero data loss and continuous uptime ensured.
NestJSNext.jsTypeScriptPostgreSQLDockerMigrationMedia

Project goals
- Migrate from Laravel 5.8/PHP 7.1 to NestJS 11/Next.js with zero data loss
- Move from MySQL to PostgreSQL 16 preserving all publication history
- Implement Docker containerization for reliable deployment
- Ensure SEO compatibility and preservation of search rankings
Tasks
- Audit existing Laravel architecture: routes, models, controllers
- Develop MySQL → PostgreSQL migration schema with data type mapping
- Write NestJS modules to replace PHP controllers
- Implement Next.js frontend with SSR for SEO
- Configure 301 redirects to preserve SEO rankings
- Dockerization: nginx + app + db + redis in docker-compose
- Performance and load testing
Results
Measurable performance indicators
- Successful migration of 100% data without losses from MySQL to PostgreSQL
- Loading speed improved by 60% compared to the Laravel version
- SEO rankings preserved with correct 301 redirects
- Deployment automated via Docker Compose and CI/CD
- System runs on Ubuntu 24.04 LTS with zero downtime during updates
Key metrics
Specific performance indicators of the project
100%
Articles migrated
+60%
Speed improvement
0 мин
Migration downtime
22 LTS
Node.js version