# Capstone: Build Your First App with Codex

- Link: https://thecuriosi.com/lessons/codex-first-app-capstone/
- Published: 2026-11-10T20:08:45+05:30
- Author: MAHENDRA MANCHIKALAPATI

1. [Courses](https://thecuriosi.com/courses/)
 2. [ChatGPT and Codex Mastery: From Zero to Builder](https://thecuriosi.com/courses/chatgpt-codex-mastery/)
 3.  Lesson 6 of 6

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
    codex
    ```

The 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:

 1. “Add a checkbox next to each goal that crosses it out when ticked.”
 2. “Add a dark mode that follows my device setting.”
 3. “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.

 [Log in](https://thecuriosi.com/wp-login.php?redirect_to=https%3A%2F%2Fthecuriosi.com%2Flessons%2Fcodex-first-app-capstone%2F)
to mark lessons complete and track your progress.

 [ Previous lesson Search, Deep Research, Agents and Apps ](https://thecuriosi.com/lessons/chatgpt-deep-research-agents/)

 Next course in ChatGPT Mastery

 [ ChatGPT and Codex Mastery: Advanced Workflows  ](https://thecuriosi.com/courses/chatgpt-codex-advanced-workflows/)

 [Back to course overview](https://thecuriosi.com/courses/chatgpt-codex-mastery/)

Share this
