5.1.1
Install
Copy the private Groundcrew repo into a repo of your own, pick the sample for your trade and run it.
What you need
- Access to the repo. After you buy, accept the GitHub invite. Sales are not open yet.
- Node.js 22.18 or later.
- pnpm.
- Git.
Clone, do not fork
Clone the repo into a new repo of your own. Do not fork it. A fork of a private repo is deleted when your access ends.
git clone https://github.com/astronomic-dev/groundcrew.git my-site
cd my-site
git remote remove origin
pnpm install
Then create an empty repo of your own, add it as origin and push:
git remote add origin <your repo URL>
git push -u origin main
Pick a sample
The repo starts with the plumbing sample in content/ and seed/. To start from another trade, such as construction, run one of these:
pnpm sample construction
pnpm sample landscaping
pnpm sample plumbing
pnpm sample cleaning
The command does three things:
- It copies
demos/<trade>/overcontent/, every file but the seed. - It copies
demos/<trade>/seed/overseed/, the EmDash seed. - It sets the
presetline insrc/theme.config.tsto the same trade.
Both folders are replaced exactly: a file of the old sample that the new one lacks is gone. So the command stops when content/ or seed/ differs from every sample, which means you have edited your content. Nothing changes. To switch anyway, add --replace. Your edits are lost.
pnpm sample construction --replace
Pick a sample before you start on your own content. If you use EmDash, run pnpm seed:emdash --reset after a switch. See Switch to EmDash.
The sample sets the look too, but you can change the look on its own later. Any preset works with any sample. See Looks.
Run it
pnpm dev
Open the address that Astro prints, usually http://localhost:4321.
The setup check
A static build checks your setup as it builds the pages, and pnpm dev checks it on each page you load, also on EmDash. They stop, with a list of problems, when the site has no business name or phone, when a form has no usable address, or when a link is refused.
An EmDash production build renders no pages, so it does not run this check, and neither does the EmDash server. Run pnpm dev or a static build against your content before you launch.
The sample runs as it is. Its settings turn on sampleContent, and SITE_URL is not set yet, so its example.com form addresses and its [FILL IN: …] markers are allowed, with a warning. A form that still posts to example.com sends nothing. It shows “This is a demo, so nothing was sent.”
That changes as soon as the site is yours. Once you change the business name or phone, pnpm dev and a static build stop on each example.com address, sample social link and [FILL IN: …] marker that is left, and list them. They also stop on them when sampleContent is off, or when SITE_URL is your real address. See Settings.
The setup check reads the home page’s links and markers, but not its picks or its order. Run pnpm test:adapter after you change content/home.yaml. See The home page.
Before you launch
- Pick the sample closest to your trade, and its preset.
- Set
SITE_URLto your public address. See Deploy. - Replace the sample’s services, areas, projects, reviews, team and posts. Replace its photos with your own, or keep the free ones. See Content.
- Set your business details and real form addresses. See Settings.
- Turn off the parts you do not use. See Turn parts off.
- Turn
sampleContentoff. - Fill in the legal pages. A static build and
pnpm devstop on each marker left, but they do not check what you wrote. An EmDash production build does not check them. See Settings.
Other commands
pnpm check # type-check
pnpm build # build the site into dist/, with the site search index
pnpm preview # serve the build, to try site search
pnpm test:units # the theme's unit tests
pnpm test:adapter # build the selected source and check its content and pages
pnpm test:parity # build every content source and compare content and pages
pnpm test:no-emdash # check that a Markdown build needs no EmDash package
pnpm test:system # check the design system pages
pnpm test:skins # check each preset and font: tokens, contrast and files
With Markdown, site search works on the built site, not in pnpm dev. Run pnpm build, then pnpm preview. With EmDash, site search asks EmDash on each request, so it works in pnpm dev too.
On EmDash, pnpm test:adapter and pnpm test:parity use a fresh database seeded from seed/ for the run, not data.db. They check the seed, not the edits you made in the admin.
Shared code
The shared code is in packages/. It is part of your repo, so you can change it as you need: the components and design tokens, the parts from the Pro package that Groundcrew uses, the content sources, and the theme plumbing. The Pro package’s README lists its parts.
Next: Content.