LEARN · PRACTISE · DISCOVER
Capstone: Build Your First App with Codex
In this capstone you will meet Codex, OpenAI’s coding agent, and use it to build and improve a small personal web page, a “daily focus” page that shows your top three goals and a motivational quote. You do not need to know how to code. Along the way you will apply every skill from the course: clear prompting, iteration, careful review and checking results.
Step 1: Choose how to use Codex
Codex is available in several places. Availability and limits depend on your plan, with cloud tasks generally requiring a paid plan.
| Surface | Best for |
|---|---|
| Codex in ChatGPT (cloud) | Working on code stored on GitHub without installing anything |
| Codex desktop app | A friendly visual way to work on folders on your computer |
| Codex CLI | Working in a terminal on files on your computer |
| Editor extension | Working inside code editors such as VS Code |
For this project, use the desktop app or the CLI so everything stays in a practice folder on your computer. If you choose the CLI, follow the official installation instructions; at the time of writing a common method uses Node.js:
npm install -g @openai/codex
mkdir daily-focus
cd daily-focus
codexThe first time you run it, Codex asks you to sign in, usually with your ChatGPT account. Installation steps change, so check OpenAI’s Codex documentation if anything differs.
Step 2: Write a clear brief
Use the five-part framework from Lesson 2. Codex works best with specific, testable requests:
Task: Create a simple web page called index.html in this folder.
Context: It is a personal "daily focus" page I will open each
morning. I am a beginner, so keep the code simple and add short
comments explaining each part.
Requirements:
- A heading with today's date
- Three text boxes for my top 3 goals, saved in the browser
so they are still there when I reload the page
- A random motivational quote from a list of 10, with a
"New quote" button
- Calm colours, large text, works on a phone
Constraints: Plain HTML, CSS and JavaScript only. No external
libraries. Do not create any other files unless necessary.Step 3: Review, test and improve
Approvals
Codex shows you what it plans to do and, depending on its approval settings, asks before editing files or running commands. As a beginner, keep approvals on so you see every step. Read each request: if Codex wants to run a command you do not understand, ask it: “Explain what this command does before I approve it.”
Test it like a user
Open index.html in your browser. Check that the date is right, type three goals, reload the page and confirm they are still there, and click the quote button several times. Try it on a narrow browser window to simulate a phone.
Improve in small rounds
Change one thing per request, as you learned in Lesson 2:
- “Add a checkbox next to each goal that crosses it out when ticked.”
- “Add a dark mode that follows my device setting.”
- “Show a short celebration message when all three goals are ticked.”
If something breaks, describe it precisely: what you did, what you expected and what happened. Ask Codex to explain its changes so you learn as you go. Keep a copy of the folder before big changes so you can always go back.
Course recap
| Lesson | Core skill |
|---|---|
| 1 | Understand ChatGPT, Codex, plans, limits and offers |
| 2 | Write clear prompts and refine answers |
| 3 | Use files, images, voice and Canvas |
| 4 | Organise work with instructions, memory, Projects and GPTs |
| 5 | Use search, deep research, agent mode and apps |
| 6 | Build and improve a small app with Codex |
Key takeaways
- Codex runs in ChatGPT, a desktop app, a terminal and code editors; start in a practice folder.
- A specific brief with requirements and constraints gives Codex the best start.
- Keep approvals on, read every request and ask Codex to explain anything unclear.
- Test like a real user and improve one change at a time.
Practice
Build the daily focus page following all four steps, then add two improvements of your own. Write a short note listing what you asked for, one thing Codex got wrong and how you described the problem to get it fixed.