Files
andrearuffiniandClaude Opus 5.5 ee18ef3e1f docs: record visual direction (02) and Astro stack
ADR 0002 picks proposal 02 "Bottega"; ADR 0003 picks Astro static,
hosting still open. Update runbooks, module map and CLAUDE.md commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 21:10:02 +01:00

32 lines
1.1 KiB
Markdown

# Local development
## Prerequisites
- Node.js (tested with v24) and npm
## Run the site
```
npm install
npm run dev # http://localhost:4321
```
## Build
```
npm run build # static output in dist/
npm run preview # serve dist/ locally
```
Pages are emitted as `dist/<page>.html` (`build.format: 'file'`); canonical URLs have no `.html`, matching the current site (`/officina`, `/servizi`, …). The web server must map `/officina` → `officina.html`.
## Where things are
- Business data (address, phone, hours, services, FAQ): `src/data/officina.ts` — change it here, pages and JSON-LD follow
- Layout, meta tags, AutoRepair JSON-LD: `src/layouts/Base.astro`
- Global styles / design tokens: `src/styles/global.css`
- Sections: `src/components/` · Pages: `src/pages/`
## Design proposals (reference only)
```
python3 -m http.server 4173 --directory design # http://localhost:4173/proposte/
```
## Environment
`.env` (git-ignored) holds the Gitea API configuration only: `GITEA_API_URL`, `GITEA_TOKEN`, `GITEA_OWNER`, `GITEA_REPO`. The site itself needs no environment variables.