Media & migration·2026
Egemen Qazaqstan — a new platform for the newspaper
Migrating the leading national newspaper “Egemen Qazaqstan” from a legacy Laravel 5.8/PHP 7.1/MySQL stack to a modern multi-tenant platform built on Next.js 16 + NestJS 11 + PostgreSQL 16. Hierarchical rubrics, RBAC with granular permissions, change auditing, newsletters, daily PDF generation and real-time updates over WebSocket.
Next.jsNestJSTypeScriptPostgreSQLPrismaRedisDocker

Project goals
- Migrate from Laravel 5.8/PHP 7.1 to NestJS 11/Next.js 16 without data loss
- Move from MySQL to PostgreSQL 16 preserving the full publication history
- Introduce a multi-tenant architecture with per-edition data isolation
- Ensure SEO compatibility and keep search rankings
Tasks
- Audit the legacy Laravel: routes, models, controllers, MySQL schema
- Design a MySQL → PostgreSQL 16 migration with type mapping
- Implement NestJS modules and a Next.js frontend with SSR for SEO
- Build hierarchical rubrics with visual customization
- Introduce RBAC, change auditing (before/after) and newsletters
- Add daily PDF generation and real-time updates over WebSocket
- Containerize the stack: web + api + PostgreSQL + Redis + MinIO
Results
Measurable performance indicators
- A modern platform replacing legacy Laravel 5.8
- Publication history migrated to PostgreSQL 16 without loss
- A multi-tenant architecture with per-edition data isolation
- RBAC with granular permissions and full change auditing
- Newsletters, a daily PDF edition and real-time updates
Key metrics
Specific performance indicators of the project
Laravel → NestJS
Migration stack
PostgreSQL 16
Database
+60%
Speed gain
0 мин
Migration downtime