Learn Claude Code by Building DevPulse · Chapter 14

DevPulse on the internet

How do you give a colleague one link that shows just the tasks for their project, while the rest of DevPulse stays on your laptop? By the end of this chapter, a page of the tasks you choose is live on GitHub Pages, and Claude has checked that nothing private went with it.

One sitting~7 min read, ~20 min to build along
You start fromchapter 13's DevPulse
You builda public page, live on GitHub Pages
Chapter 14 of 15DevPulse leaves your laptop

Prefer to watch? This chapter goes with Episode 14 (5:55). Open it on YouTube.

Subscribe on YouTube

Goes with Episode 14"How do I put my Claude Code project on GitHub Pages?". Watch it just above, or read this page at your own pace. It teaches the same steps.
In a hurry?Jump to the quick reference: every command and key in this chapter, what it does, and when to use it.
Every prompt, ready to copyThis chapter's prompts and commands, each with a Copy button. Type them yourself first; copy if you are stuck or behind.
Where you areDevPulse with tests, skills, its own tools and hooks, from chapters 1 to 13. It all runs on your laptop.
Before you startYou need a GitHub account and gh, GitHub's own command-line tool. To check, run gh --version in PowerShell or Terminal. If it is missing, install gh from its official site. Then sign in once with gh auth login. You do this yourself: Claude never types your password.

Share some tasks, not all

A colleague on another team needs to see how their project is going. Their tasks sit in DevPulse, next to all of yours. A screenshot is out of date by tomorrow; a link is not.

The question for this chapter

How do you give your colleague one link that shows just their tasks?

A hand-drawn laptop holding two files, code and keys. The code goes up to a cloud marked public, with an eye on it. The keys file's arrow stops at a red cross: never pushed.
Software teams solve this every day. When a project goes on GitHub for anyone to read, the code is public, the API keys sit in a file that is never pushed, and someone takes one look at what goes out before every push. In this chapter DevPulse gets all three: a public page, a tasks file that never leaves the laptop, and a check after every push.

Build a page of public tasks

The public part is one plain web page. A small script, publish.py, keeps only the tasks tagged public and writes the page into a folder called docs. Your tasks file plays the part of the API keys:

FileGoes public?What it is
docs/index.htmlYesThe page your colleague opens
publish.pyYesThe script that builds the page
.gitignoreYesThe list of what Git leaves out
The rest of DevPulse: server.py, index.html, the tests, .claude/YesThe code from chapters 1 to 13
data/tasks.jsonNeverAll your tasks. Git ignores it, so it is never uploaded
Type this into Claude Code, as one lineCreate publish.py that builds docs/index.html, a public "What I'm building" page, from tasks tagged public only. Keep data/tasks.json out of git. Then run it.
Claude: I created publish.py and ran it. It wrote docs/index.html with 0 public tasks, because no task is tagged public yet. It keeps only tasks tagged exactly public, leaves out ids and timestamps, and added data/ to .gitignore; git check-ignore confirms data/tasks.json is ignored.
Done in 27 seconds, with 0 public tasks, so the page says "Nothing public yet". Look at the second point: data/ is now in .gitignore, and Git confirms the tasks file is ignored.

The page stays empty until a task is tagged public. Log two, with your own DevPulse tools from chapter 11.

Then type this, as one lineLog two tasks tagged public: "Built a Week view with streaks" 90 minutes and "Gave Claude Code its own DevPulse tools" 60 minutes. Then run publish.py again.
Called devpulse 4 times, ran 1 shell command. Claude: I logged both tasks with the public tag and re-ran publish.py; docs/index.html now lists both, with a total of 2 h 30 min. Both show as open because new tasks start as not done.
"Called devpulse 4 times": Claude logged the tasks through your own tools. Total: 2 h 30 min.

Open the page on your laptop

In your devpulse project, open the docs folder and double-click index.html: File Explorer on Windows, Finder on a Mac.

File Explorer at OneDrive, LearnAIbyBuilding, projects, devpulse, docs. The docs folder holds one file, index.html, which is selected. The data folder sits next to docs.
The docs folder holds one file, index.html.
A browser showing the local file D:/OneDrive/LearnAIbyBuilding/projects/devpulse/docs/index.html: a plain white page titled What I'm building, 2 items, 2 h 30 min so far. Built a Week view with streaks, 2026-10-29, 1 h 30 min. Gave Claude Code its own DevPulse tools, 2026-10-29, 1 h.
2 tasks, a total, and nothing else. The address is a file on your laptop. An empty circle means "not done yet".

Or open it from Claude Code:

Windows: type this into Claude Code! start docs/index.html
Mac: type this into Claude Code! open docs/index.html

Commit it

Use the commit command, /commit-commands:commit.

/commit-commands:commit. Committed e3e49da. Claude: I committed .gitignore, publish.py and docs/index.html as e3e49da, Add publish.py for public page. I left .playwright-mcp/ out of the commit.
3 files go in: the page, the script and .gitignore. Your tasks file is not one of them.

Put the project on GitHub

GitHub keeps an online copy of your project, called a repository, and it can serve one folder of it as a website, for free. Claude works with GitHub through gh.

Set up gh yourself, once

Install gh and sign in to your own GitHub account in your second tab. Claude never types your password.

Windows: type this in PowerShell, one line at a timewinget install --id GitHub.cli gh auth login
Mac: type this in Terminal, one line at a timebrew install gh gh auth login

gh auth login asks a few questions. Pick GitHub.com, then "Login with a web browser", and follow the code it shows. Then go back to Claude Code.

Create the repository and push

Type this into Claude CodeCreate a public GitHub repository called devpulse with gh, and push this project to it. Make sure data/ stays out.

What Claude did, in order:

  1. Checked that data/ is ignored and nothing in it is tracked, before creating anything.
  2. Created the repository and pushed.
  3. Counted the data/ files that reached GitHub: none.

Yours will be under your own GitHub name.

Careful here

"Public" means anyone can read every file in the repository. That is why data/ had to be in .gitignore first. Once a file is pushed, deleting it later does not remove it from Git's history.

Turn the docs folder into a website

GitHub Pages serves one folder of your repository as a website. The page went into docs/ for exactly this.

Type this into Claude Code, as one lineTurn on GitHub Pages for this repository from the main branch, /docs folder, with gh, and give me the live address.
Ran 1 shell command. Claude: GitHub Pages is on for main and the /docs folder. The live address is https://aditya-402.github.io/devpulse/. The first build usually takes a minute or two, so the page may return a 404 until it finishes. I didn't check that the page loads.
One command, one address. Read the line under it: the first build takes a minute or two, and Claude did not check that the page loads. That is the next step.

Your address has the same shape: your-github-name.github.io/devpulse.

Check what went public

Anyone can read a page on the internet. Before you share the link, give the first build a minute or two. Then ask Claude to prove two things: the page is up, and nothing private is on it.

Type this into Claude CodeCheck that the live page is up and shows no private tasks.
Claude: Status: the Pages build finished and the address returns HTTP 200. Content: the page lists 2 items totalling 2 h 30 min. Private tasks: data/tasks.json has 6 tasks; the 4 tagged planning, backend and review don't appear on the page. The page has no scripts and doesn't fetch any data.
HTTP 200: the page is live, with 2 items and 2 h 30 min. Claude then compared it with your tasks file: 6 tasks on your laptop, the 4 private ones absent, only the 2 tagged public on the page.

Then type the live address into your browser.

A browser at aditya-402.github.io/devpulse/: the live page, What I'm building, 2 items, 2 h 30 min so far, with the same two tasks.
The same page, now on the internet, ready to share with your colleague.
Every time you push
  1. The tasks file is still ignored: git check-ignore data/tasks.json prints its name.
  2. The commit holds only the files you meant to publish.
  3. After the push, run the check prompt above: the page is up, and no private task is on it.

To add a task later: tag it public, run python publish.py (Mac: python3), commit, and push. GitHub rebuilds the page.

What it costs

CostHow much
MoneyNothing: GitHub Pages is free for public repositories
CareEvery push to a public repository is public, so the check runs after every push

Next chapter: Claude Code beyond the terminal, in VS Code, the desktop app and Claude Code on the web.

The takeaway

  1. Keep private data out of Git before the first push: .gitignore first, then the repository.
  2. Publish a page built from what you choose, never the data file itself.
  3. Don't stop at "published": ask Claude to show what went public, and what stayed private.

Quick reference

The prompts from this chapter, ready to copy: every prompt, chapter 14.

Command or keyWhat it doesUse it when
Create publish.py that builds docs/index.html …Writes a script that turns public tasks into one static pageYou want to share some of your data, not all of it
data/ in .gitignoreKeeps your private task file out of every commitBefore anything goes to GitHub
gh auth loginSigns the GitHub CLI in to your own accountOnce, before Claude creates a repository for you
Create a public GitHub repository … with ghCreates the repository and pushes your projectThe project is ready to leave your laptop
Turn on GitHub Pages … /docs folderServes docs/ as a websiteYou want a live address to share
Check that the live page is up and shows no private tasks.Fetches the live page and compares it with your dataEvery time something goes public

References

Where each command and setting on this page comes from. The Claude Code screenshots are from our own recording on 29 Oct 2026, Claude Code 2.1.312; the folder and browser pictures are from 12 Nov 2026.

  1. GitHub · GitHub CLI manual gh auth login, gh repo create, and gh api for repository settings. https://cli.github.com/manual/
  2. GitHub · Configuring a publishing source for your GitHub Pages site Publishing from the main branch and the /docs folder; the first build can take a few minutes. https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site
  3. Git · gitignore How a .gitignore line keeps a folder out of every commit. https://git-scm.com/docs/gitignore
  4. My own recording · 29 Oct 2026, Windows 11 The repository, Pages and the live check took under five minutes; the page showed 2 public tasks and none of the 4 private ones.