Setting up your directory from the Terminal
For developers. No technical skills? Start here instead: the same steps, all in your browser, with nothing to install.
The setup goes step by step, in plain questions. The first three steps make a complete, working directory; the last two are optional extras: take one when you want what it adds, or never. You can stop after any step. Each step’s guide says what the setup does, and the same steps by hand.
| Step | What you have once it’s done | Needs | Accounts (all free to start) |
|---|---|---|---|
| 1. Put your site online | Your directory, live at its own address, with your name and address. | Nothing else | Cloudflare |
| 2. Connect your forms | What visitors send arrives in your email. | Step 1 | Formspree (or a form service you use) |
| 3. Connect GitHub | Your site on GitHub, and an editor you sign in to from anywhere. | Step 1 | GitHub |
| Automatic submissions (optional) | Each submission becomes a draft listing for you to approve. | Steps 1, 2 and 3 | GitHub, Cloudflare |
| Daily rebuild (optional) | Sponsored places start and end on their dates by themselves. | Step 3 | None more |
| Sponsorship payments (optional) | Sponsors book and pay on your site, and their place waits for your approval. | Steps 1 and 2, Automatic submissions, and the daily rebuild (a booked place starts and ends on its dates only when your site is rebuilt) | Stripe |
New to the Terminal? Read What you’ll need and Before you start first: they cover installing what the setup needs, on a Mac or a Windows PC.
The setup
Section titled “The setup”In your directory’s folder, run:
npm run setupIt asks plain questions, step by step, and does the technical steps for you: it signs you in to Cloudflare and GitHub with a code in your browser, uploads your site, puts it live, and saves your passwords and keys where your site needs them. It asks before changing any setting on GitHub. It never shows a secret, and never saves one in your project.
- “Set up everything, in order” takes you through steps 1 to 3, then asks about the extras.
- A step is marked done only when it worked. If a step fails, the setup says what went wrong in plain words and offers to fix it there, try again, or come back later.
- Run it as often as you like. It remembers where you are, in
.setup/in your folder (no passwords or keys are kept there). - At the end, “Your next steps” lists what to try now, and what’s left. It’s saved as
NEXT-STEPS.mdin your folder. - “Sign out of GitHub” in its menu removes the GitHub sign-in it keeps on your computer (in the macOS Keychain or Windows Credential Manager).
What the setup shows, screen by screen, is written out in full, for reference.
Each directory is its own copy of the starter, in its own folder. To run a second directory, make a second copy and run the setup there: nothing is shared between them.
Checking everything
Section titled “Checking everything”npm run doctorIt checks everything you’ve switched on, and says exactly what’s missing and how to fix it. While
npm run dev is running, the same checks are at http://localhost:4321/_setup. The setup’s menu has it
too: “Check everything”.
By hand
Section titled “By hand”Each guide says what the setup does, then the same steps by hand, for anyone who prefers to work that way, or whose host the setup can’t reach.
Where to read more
Section titled “Where to read more”- Hosting: which host runs what, and how to deploy to each.
- For developers: the reference, with every setting explained.