Back to Projects
Live system · National TV

Que Gane el Mejor

The live interactive games of a school competition show on TV Perú, and the production systems behind them.

600+
Students
28
Schools
Live
Zero on-air failures
2023 – 2026
Running the system

About the Program

“Que Gane el Mejor” is a TV Perú competition show that pits two schools against each other per episode, with teams of seven high-school seniors competing in knowledge games.

It airs live, with games like “Personajes” and “Mi libro favorito”, and grand finals bringing together hundreds of students from schools across the country.

The Live System

  • •Real-time: the on-screen games, scores and show flow, live
  • •Operated from the switcher: I operated it myself during the broadcast
  • •No margin for error: any failure had to be resolved within seconds, live on air
  • •Sole technical owner: development, infrastructure and operation were on me

My Role & Technical Contribution

Games from Unity to the web

When the show started I moved the interactive games from Unity to the web: first with Next.js alone, then with the full stack deployed on AWS. I operated them myself from the switcher during every broadcast.

The production's internal file system

I maintained and then rebuilt the system where production stores its recordings, images and documents: from React, Express and MySQL on a local PC to Next.js, NestJS, TypeScript and PostgreSQL on AWS (EC2 and S3), with Docker and CI/CD with GitHub Actions. Along the way I fixed a SQL injection flaw and plain-text password storage.

Data collector with a local LLM

I built the games' data collector. From mid-2025 I integrated a local LLM into it (Qwen 2.5 on Ollama, dockerized): given a topic, the model returned JSON in a defined format, which the system turned into game questions ready for the teacher's review. It also corrected spelling and reduced the repetitive manual work of loading content.

Live audience voting

I developed a QR-based voting system for viewers to back a school, with anti-abuse protection to prevent multiple votes. It was later handed over to TV Perú's engineering team.

Tech Stack

Next.jsNestJSTypeScriptPostgreSQLAWSDockerGitHub ActionsOllama

Impact & Reach

Zero on-air failures

Live broadcasts on national television, with zero on-air failures.

From a local PC to the cloud

The production's file system stopped depending on a single machine and moved to AWS, with automated deployment.

National reach

Over 600 students from 28 schools across different regions of Peru.

Sole technical owner

Development, infrastructure and live operation by a single person.