Skip to content

Build your first project

Describe a small app, try it in Preview, make one change, and publish it from the freecode workspace.

Start a project

Open the workspace. Under What do you want to build?, describe one small app and choose Start building. If a project is already open, choose New project in the sidebar first. You can try your first few prompts without an account.

Example prompt

Build a packing list. Let me add an item, tick it off, and keep my list when I refresh the page.

If the workspace shows Turn off your ad blocker to keep building, allow ads on freecode and choose Reload. Your draft is saved.

Already have code? Choose Import from GitHub under the prompt instead. See the import steps. To start from a working example, pick one in the templates catalog.

Follow the build

Your prompt opens a conversation, and freecode replies there as it works. While it works, each step is one line, such as Write file or Run command. When the reply finishes, the steps fold into a short summary such as Edited files, ran commands. Expand the summary, then a step, to see the file or the command and its output.

Example from project chat
freecode

Try it in Preview

When the task finishes, your running app is ready in Preview. On a wide screen, Preview opens beside the conversation. On a phone or tablet, choose Open workspace panel at the top right to see it. Add “charger,” tick it off, and choose Reload page. The item and its check mark should both still be there.

Packing list project with its conversation on the left and the running app in the Preview tab on the right.

If something is missing, say so in the same conversation: “I ticked off charger and reloaded, and the check mark was gone.” The agent keeps working on the files it just created.

Make one change

In What would you like to change?, enter “Add a button that clears only the checked items.” When the task finishes, choose Changes in this turn under the reply to see which files it edited. Test the button in Preview with one item checked and one unchecked. Learn how to review and restore changes.

Publish it

Choose + beside the Preview tab, then Publish, then Publish site. Sign in if prompted. When View published site appears, open it. That link is the one to share. After later edits, choose Update site to publish them. Read about publishing and unpublishing.

Next, learn how projects work so you can reopen, rename, or archive what you built. To edit files on your own computer instead, follow the getting-started guide.