# Set up and run the app — one local Mac route

## Stack and ownership

The viewer owns a Mac, Terminal, browser, Claude subscription and project folder. Claude Code creates source; ordinary HTML/CSS/JavaScript runs locally; browser localStorage holds records; Python serves static files. No API key, remote database, account inside the app, cloud hosting or message connector is required.

Observed build: Claude Code 2.1.332, `claude-sonnet-5-5`, existing Claude Pro subscription, one 151.01-second implementation run and nine turns. Current local rechecks use Node v25.8.0 and Python 3.14.3. These are observed versions, not claimed minimums. Python 3 is required to use the supplied server command; Node is needed for optional code tests, not for the running browser app.

Official links checked November 29, 2026:
- Claude Code installation/login: https://code.claude.com/docs/en/quickstart
- Everyday workflow: https://code.claude.com/docs/en/common-workflows
- Python downloads: https://www.python.org/downloads/macos/
- Node downloads: https://nodejs.org/en/download

## Run either supplied implementation without using Claude allowance

Unzip this kit. Open Terminal, type `cd `, drag the chosen app folder from Finder into Terminal and press Return. Dragging inserts the real folder path, including spaces.

For the authored reference, choose `follow-up-desk`, then run:

```sh
python3 -m http.server 8769 --bind 127.0.0.1
```

Open http://127.0.0.1:8769/ . Leave that Terminal running. Stop with Control-C when done.

For the ACTUAL Claude-built app, choose `claude-built-app` in a separate Terminal, then run:

```sh
python3 -m http.server 8866 --bind 127.0.0.1
```

Open http://127.0.0.1:8866/ . These addresses are separate storage origins; do not move evidence or saved records between them and call it one run. Keep the same browser profile, host and port when testing persistence. Existing records may already be present if you previously used that exact origin; inspect rather than delete them.

If Python is missing, install Python 3 from the official link before running the command. If the port is occupied, choose a free port and record the new origin; previous localStorage will not appear there. Do not bind publicly or deploy this starter.

## Run the code tests

From `follow-up-desk`:

```sh
node --test core.test.mjs
```

From `claude-built-app`:

```sh
node --check app.js
node --check logic.js
node tests/logic.test.js
```

Observed: reference 10/10 and actual 20/20 logic tests. They do not replace browser testing. The actual browser backup contains four fictional contacts and the saved Maya edit; it is evidence of export, not an importable recovery feature.

## Build your own version with Claude Code

The tutorial's build route uses an existing Claude Pro subscription; other paid routes are not needed. Official docs currently list Pro among supported accounts. Plan limits and usage change; check your own allowance. Do not enter a Console API key or enable paid extra usage just to follow this route. Native Claude Code installation does not require an npm install.

If Claude Code is missing, the official Mac installer command is:

```sh
curl -fsSL https://claude.ai/install.sh | bash
```

This is a viewer setup instruction; we did not run an installer during this kit repair. Follow any terms/security/account prompts yourself. Then open a new Terminal and check:

```sh
claude --version
```

Create a new empty project folder, copy BUILD-BRIEF.md and ACCEPTANCE-TESTS.md into it, open Terminal there and run `claude`. Sign in through your Claude subscription and verify that account route rather than assuming an API key is free. Review file/command permissions for this folder only.

The approved narration teaches plan first: submit FIRST REQUEST from CLAUDE-BUILD-PROMPT.txt, review it, then submit IMPLEMENTATION REQUEST. Save your actual responses. Our observed run used ACTUAL-BUILD-PROMPT.txt as a single direct request instead; the exact two-stage interaction has not been independently reproduced. Both routes remain clearly distinguished.

Run the resulting app with its returned command and perform ACCEPTANCE-TESTS.md. A new build consumes your subscription allowance. No model run is required to inspect the already supplied working apps.

## Use it and retain your work

Load fictional examples, edit Maya's action/date, complete/reopen Leo, search and export JSON. Reload, close and reopen at the same origin. The completed actual browser test preserved four contacts and the exact edits. The backup is download-only: there is no import/restore UI. Before important data, decide and test an actual recovery method; no recovery success is claimed here.
