diff --git a/CLAUDE.md b/CLAUDE.md index a2e2dce..495fa0b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## What this is -Randify is a static site (Astro 4 + Tailwind CSS 4) that hosts random-value generators. Only the number generator is live; the rest are catalogued in `src/data/generators.ts` with `status: 'coming-soon'`. +Randify is a bilingual (EN/RU) static site (Astro 4 + Tailwind CSS 4) hosting random-value generators. All 10 generators are live. Deployed to randify.pro on reg.ru via GitHub Actions + rsync on push to `main`. ## Commands @@ -14,24 +14,45 @@ npm run build # Static build → dist/ npm run preview # Serve the built dist/ locally ``` -**Docker (production):** multi-stage build compiles with Node 20 then serves via `nginx:alpine`. The nginx config handles pretty URLs via `try_files $uri $uri/index.html`. +**Docker (production):** multi-stage build with Node 20, served via `nginx:alpine` with pretty URLs. ```bash docker build -t randify . docker run -p 8080:80 randify ``` -## Architecture +No test runner or linter is configured. -**Adding a new generator** involves three steps: +## Adding a new generator -1. Add an entry to `src/data/generators.ts` (set `status: 'live'` when ready). -2. Create `src/components/generators/Generator.astro` — interactive logic goes in an inline `