CodeGym
AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • Downloading and exploring ChatGPT App (Next.js 16)

    ChatGPT Apps
    Level 2, Lesson 0
    In this lecture you will run a working ChatGPT App on Next.js 16 locally: check your environment (Node.js, npm, Git), download a starter (via git clone or a GitHub template), install dependencies ( npm install), set secrets via .env.local (the OPENAI_API_KEY variable), and start the dev server with npm run dev, making sure http://localhost:3000 opens without errors.
    Available
  • Inside the template: project structure and key files

    ChatGPT Apps
    Level 2, Lesson 1
    In this lecture, you will unpack the “map” of a typical Next.js template for ChatGPT Apps: where the UI widget lives ( app/page.tsx or app/widget/page.tsx), where the MCP layer is located ( app/mcp/route.ts), and which configs “glue” the project to the ChatGPT runtime ( next.config.ts, proxy.ts, .env.local). We will also discuss why 'use client', assetPrefix, CORS, and secure storage of OPENAI_API_KEY matter.
    Available
  • Local run, HTTPS tunnel, and availability for ChatGPT

    ChatGPT Apps
    Level 2, Lesson 2
    In this lecture, we’ll cover why an address like http://localhost:3000 works only on your machine and is unreachable from ChatGPT’s cloud; how HTTPS tunnels work (reverse‑proxy model); how to spin up a quick tunnel with cloudflared to a public domain https://*.trycloudflare.com; how to plug it into Dev Mode; and how to diagnose common issues: wrong port, http/ https mix‑ups, a stopped tunnel, and a changed URL.
    Available
  • Dev Mode in ChatGPT: connecting a local app

    ChatGPT Apps
    Level 2, Lesson 3
    We break down Developer Mode in ChatGPT as a practical “garage” mode for development: how to connect your app via a public HTTPS URL to /mcp, what happens during the MCP handshake, where to check logs ( app/mcp/route.ts, terminal npm run dev), how the dev cycle works (UI vs. MCP schema), and why you sometimes need Refresh. At the end—an actionable scenario for GiftGenius and a list of common mistakes, from a URL missing /mcp to the expectation that Dev Mode “changes the model”.
    Available
  • First smoke test: “Hello widget” and openExternal

    ChatGPT Apps
    Level 2, Lesson 4
    In this lecture you will run the first end‑to‑end smoke test of a ChatGPT App: verify that a Next.js widget actually renders inside ChatGPT via an HTTPS tunnel, that client handlers (for example, onClick) execute in the iframe sandbox, and that external navigation opens correctly via the window . openai . openExternal bridge rather than unpredictable window . open ( ) or < a >.
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym