Codex course

Module 2 of 14

Check Setup and Create Your First Page

Time: about 10 minutes

Difficulty: Beginner

No programming experience needed.

What you'll learn

  • How to check whether Codex needs any setup before it can run a web page.
  • How to ask Codex to create a web page.
  • How to open that page in your browser.

Step-by-step instructions

  1. Open the Codex task for my-task-list.
  2. Type this message and press Return:
Codex message

Before creating the first page, please check what this computer needs in order to run a simple website locally. Set up only what is necessary. Explain any permission prompt in plain English, and tell me when I can open a local preview in my browser.

How to check it worked: Codex tells you whether setup was needed and gives a clear next step. If it asks for permission, read the request before approving it.

  1. Type this message and press Return:
Codex message

Inside the my-task-list project, create a very simple first web page. It should show the heading “My Tasks” and the sentence “My personal task list.” Then tell me exactly how to open the local preview in my browser.

  1. Follow Codex's instructions. If it gives you a link, click it. If it tells you to click a preview button, click that button.

How to check it worked: Your browser shows My Tasks and My personal task list.

If something doesn't work

Codex message

The project is ready, but I cannot open the local preview in my browser. Please give me one exact next step to fix that.

What just happened?

Codex created the first files that tell a browser what to show. A web page is the part of your app that people see and use in Safari, Chrome, or another browser.

At this stage the page is deliberately small. A visible first success gives you a safe place to add one feature at a time.

Module checklist

  • You can open the page in a browser.
  • You can see the heading and sentence.

Next module: You will add a place to type a new task.