Places API script normalizes regular and special hours; build uses a snapshot, an orari sidecar refreshes /dati/orari.json every 6 hours for the open-now sign. Adds the company legal name. Key stays in .env.server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.5 KiB
2.5 KiB
CLAUDE.md
Project purpose
This repository contains the source code for the Officina Zuliani website.
Primary goal: a public website presenting Officina Zuliani (services, contacts, location).
Secondary goals: top local SEO and AI-answer visibility (GEO/AEO), fast pages on mobile.
Visual direction: proposal 02 "Bottega" (docs/adr/0002-direzione-visiva-bottega.md).
Working model
This repository uses a repo-first agent workflow. The repository is the source of truth. Do not rely on chat memory as the authoritative project memory.
Before starting work:
- Read
AGENTS.md - Read relevant files in
docs/context/ - Read related ADRs in
docs/adr/ - Check the active Gitea issue and its acceptance criteria
- Read the latest relevant file in
docs/handoffs/
Rules
- Do not start work without an issue or explicit user instruction
- Do not change unrelated files
- Prefer minimal, reversible changes
- Preserve existing architecture unless the issue explicitly asks for refactor
- Record durable architectural decisions in
docs/adr/ - Record end-of-session handoff in
docs/handoffs/ - If a task changes developer workflow, update
docs/runbooks/ - If a task changes project structure, update
docs/context/module-map.md - Never commit
.envor any secret (the Gitea repo is public)
Quality gate
Before considering work complete:
- Run relevant tests
- Run lint/format checks where available
- Verify no accidental file changes are included
- Update docs if behavior or workflow changed
- Write a concise handoff
Commands
Stack: Astro (static) — see docs/adr/0003-stack-astro-statico.md. Node.js required.
- Install:
npm install - Dev:
npm run dev(http://localhost:4321) - Build:
npm run build(output indist/) - Preview build:
npm run preview - Deploy:
./deploy.sh(Docker on the a75 server, needs.env.server, seedocs/runbooks/deploy.md) - Opening hours come from Google Business Profile (ADR 0005): do not hard-code them
- Test / Lint / Typecheck: not set up yet (
npm run checkneeds@astrojs/check) - Design proposals:
python3 -m http.server 4173 --directory design
Gitea
- Instance: https://git.a75.it — repo
andrearuffini/officinazuliani - API config lives in
.env(GITEA_API_URL,GITEA_TOKEN,GITEA_OWNER,GITEA_REPO), git-ignored - Labels and lifecycle:
coordination/labels.md,coordination/issue-lifecycle.md
Architecture notes
Keep this file concise. For details, link to:
docs/context/module-map.mddocs/context/known-constraints.mddocs/runbooks/*.md