# Build the owner's website

Read BUILD.md. Work in this kit folder. Introduce yourself as the person helping with their website. Ask in everyday language.

1. Ask whether this is a first website or an existing one. Collect the business name, one offer, a customer action and how the customer receives it. If it is a sale, confirm the exact price and currency. The starter uses USD. Change the currency consistently in the renderer, validation and tests before using another.
2. For an existing website, read its public URL with permission. Ask what customers get stuck on. List existing paths, forms, checkout, email and domain provider. Give the owner a before/after on one page. Keep the old site available through review and cutover.
3. Use the owner's words to create brief.json. See the included fictional example. Ask about uncertain details. Never infer delivery, availability, tax policy, contact information, testimonials or discounts. Clear the example photo and use only material they own or have rights to use. Offer a page without a photo if needed.
4. Use Node 20 or newer. Run `node --test test.mjs` and `node build.mjs brief.json`. Read the resulting dist/index.html. Review on a phone-sized screen. Try the practice button. Show the owner what the customer sees. The renderer builds one offer page. Adapt the files when the brief needs more than the starter. If proposing a store platform for inventory, explain its cost.
5. If the owner has selected and authorized a Netlify site, use its signed-in CLI to create a draft with `netlify deploy --dir=dist --no-build --site SITE_ID`. Replace SITE_ID with their actual site ID. Use the returned draft URL, open it and exercise the offer. If their site uses Git deployments, make a branch and a deploy preview instead. If access is missing, provide the folder and the illustrated Drop steps in BUILD.md. Distinguish a local file, a draft URL and the live business domain.
6. For a real sale the owner activates their own provider and creates the correct link in its dashboard. Accept only a public payment link. For inquiries use the verified public business email. Keep credentials in their dashboard. Test with provider test data in the provider's test environment. Confirm the live destination and fulfillment with the owner. Set confirmed to true only after they check it. Then build with `node build.mjs brief.json --live`. This enables the customer button in the output directory. It does not publish anything.
7. Before changing a live site show the exact preview, price, customer path, expected renewal costs and rollback. Have the owner approve the site, destination and any purchase. Deploy only to that destination. Verify HTTPS, phone layout, checkout or inquiry, old URLs and business email. For a customer payment verify paid status in the provider dashboard before fulfillment. Use verified webhooks for any later automated fulfillment.
