Contents Lesson 2 of 16

9 min read · practitioner

The README nobody has to ask you about

By the end of this lesson you will have a README in the order a stranger reads it, from the one-sentence description to the licence, and a timed run of its quick start from a fresh clone that needed no improvising.

Most READMEs describe what a project is. A good one answers the questions a stranger actually has, in the order they have them.

The order is the design

  1. What is this, in one sentence — including who it is for. Your audience sentence from the previous lesson.
  2. A picture. One screenshot of the running thing. It answers more questions than three paragraphs and costs a minute.
  3. Run it in five commands. Clone, install, configure, start, open. Numbered, copyable, no prose between them.
  4. What you need first — an EODHD API key, and where to get one. Say that a free key runs most of it (20 calls a day, one year of daily history) and which parts need more, such as the screener, because a person who assumes it costs money stops here, and one who assumes everything is free meets a 403 in the first minute.
  5. What it does — the features, briefly.
  6. What it does not do. The section almost nobody writes, and the one that makes the rest believable.
  7. How it works — the shape: proxy holds the key, panels do not fetch, layouts are documents.
  8. Licence, for the code and separately for the data.

A stranger who bounces does so in the first thirty seconds, and everything above item 5 is what they read.

Write the limitations, specifically

Not "this is a work in progress". The real ones, from your own measurements:

  • Rules are checked while the page is open. There is no background alerting.
  • Quotes are as fresh as your plan allows; the cockpit shows the age of every panel.
  • The screener runs on one exchange. It cannot see instruments outside it.
  • Backtests use today's constituent list, so results are biased by survivorship.

Every one of those came from a wall you measured. Writing them down converts four limitations into four demonstrations that you understand your own tool, which is exactly what a reader is trying to establish.

Test the quick start on a machine that is not yours

The instructions are wrong. They are always wrong, because you have things installed that you have forgotten about.

The cheap version of this test: a fresh clone into a new directory, with your .env.local moved aside. Follow your own instructions literally, typing nothing you did not write down. Every place you have to improvise is a bug in the README.

Let your assistant be the stranger

Give it the README and nothing else, and ask: "what would stop you running this, and what is ambiguous?"

This is the one review task where an assistant's lack of context is the point. It genuinely does not know what you meant, which is exactly the reader you are writing for.

Try it now

Do the fresh-clone test and time it. If it takes more than five minutes or requires one improvisation, fix the README before doing anything else in this course — everything downstream assumes a person can get the thing running.

The prompt

Mock mode on, plan mode on, and paste:

Rewrite README.md in this order: what it is and who it is for, from
the first line of PLAN.md; one screenshot at docs/screenshot.png; run
it in five commands, numbered, with no prose between them except on
the configure step, which says what to set in .env.local: the key, or
EODHD_MOCK=1 to run on fixtures; what you need first, an EODHD API
key and where to get one; what it does;
what it does not do; how it works; and the licence, for the code and
separately for the data. The clone command uses this repository's own
URL from git remote -v, never the starter's
(EodHistoricalData/academy-dashboard-starter); if there is no other,
write TODO there. Answer every question in the Shipping backlog
that belongs in a README. Under "What it does not do", list each limit
you can see in the code, one line each, and write TODO wherever a
figure needs measuring: I fill those in. Make no API call. Show me the
outline first and wait for my yes, then show me the diff.

The screenshot is yours to take: run npm run dev in mock mode, open the home page, take a screenshot with your system's screenshot tool and save it as docs/screenshot.png, creating the docs folder. A good answer changes README.md and nothing else, waits for your yes after the outline, keeps every command copyable, and invents no figure: each number in the limitations waits for one you measured. The configure step is the one place a line of prose earns its keep: from the next lesson on, a copy of .env.example left unedited stops the server, so the step has to say what to put in it. If your repository is not on GitHub yet, the clone line keeps its TODO until it is; the CI lesson in the next unit needs it there anyway.

Check it yourself

  1. Move .env.local aside and clone your repository into a new empty directory. Before it is on GitHub, clone the folder itself: git clone . ../fresh-clone from inside your project copies everything you have committed. Then follow the quick start literally in the new directory, typing nothing it does not say. Time it.
  2. Every place you improvised is now a line in the README, and a second run from another fresh clone needs none.
  3. The first screen of the README says what the tool is, shows the screenshot, and starts the commands.
  4. No limitation is vague: each says what the tool cannot do, with your measured number where it has one.
Compare with ours
README.md, top to bottom
  Market cockpit                   what it is, and for whom, in one sentence
  docs/screenshot.png              one picture
  Run it                           clone, install, configure, start, open
  What you need first              a key, what a free one covers
  What it does
  What it does not do              the measured limits, one line each
  How it works                     the proxy holds the key; panels do not fetch
  Licence                          MIT for the code; NOTICE for the data

The full state at the end of this unit is on the starter's branch ref/ship-your-tool/u1.

Checkpoint

git status          # the files you expect, and no .env file
git add -A
git commit -m "README in the order a stranger reads it, quick start tested from a fresh clone"

Then answer this lesson's questions.