How I built a free learning platform that scaled globally using static generation, browser-based code execution, and a single PostgreSQL database.