Educational website Jedlík-nejedlík about nutrition and parenting ("výživa a
výchova v propojení") for parents and professionals. Czech-language content site
with a CMS-driven article workflow, landing pages, webinars, and lead-capture
forms, plus the course shop (Kurzy): Accounts, a Catalog, Sales Pages and a
GoPay Checkout for On-demand Courses.
- Production: https://www.jedlik-nejedlik.cz
- CMS (Directus):
NUXT_PUBLIC_DIRECTUS_URLinweb/.env; the admin app is at/adminon it
| Area | Choice |
|---|---|
| Framework | Nuxt 4 (Vue 3.5, TypeScript) |
| CMS | Directus headless CMS (@directus/sdk) |
| Styling | Puleo CSS layer + PostCSS |
| Fonts | @nuxt/fonts (Poppins, metric-fallback CLS tuning) |
| Icons | @nuxt/icon (Iconify: bi, logos, uil) + auto-imported SVGs |
| Images | @nuxt/image with the Directus provider |
| SEO / OG | @nuxtjs/seo (sitemap, robots, OG image at build time) |
| Analytics | Plausible, self-hosted |
| Error tracking | Sentry (@sentry/nuxt) |
| Validation | Zod |
| Toolchain | Vite+ (vp) — Oxfmt, Oxlint; ESLint |
| Package manager | pnpm 11 (workspace monorepo) |
| Hosting | Coolify |
- Node
- pnpm
- Vite+
vp install # install dependencies
cp web/.env.example web/.env # seed local env
vp run dev # start the Nuxt dev serverThe example file is a template, not a working config: the app validates its
runtime config at boot (web/server/runtime-config.schema.ts) and refuses to
start without a real NUXT_PUBLIC_DIRECTUS_URL and a NUXT_SHOP_DIRECTUS_TOKEN.
Production also needs a NUXT_APP_SECRET of at least 32 characters; development
generates one when it is unset. NUXT_GOPAY_ENV=mock
needs no GoPay credentials and runs the payment flow against the dev-only mock
gateway.
Linting is intentionally strict — a large pedantic Oxlint rule set (see the
lint block in vite.config.ts), plus a separate type-aware ESLint pass
(web/eslint.config.js). Rules are either error or off; never warn.
vp run check:all runs the full gate, each step independently cached by Vite+:
check:lint— oxfmt + oxlint (vp check)check:slowlint— full ESLintcheck:typecheck—nuxi typecheckcheck:fallow— dead-code / unused-export detectioncheck:test— unit tests (web/tests/unit/)
The build is not part of the gate — vp run build locally, and the Coolify
deploy build is the signal on master.
A pre-commit hook runs vp staged (auto-formats and --fixes staged
files, so on-disk contents may change after git commit) and then check:all.
Directus is the source of content (articles, structured data) and serves images
via the @nuxt/image Directus provider. Its configuration is committed under
directus/config/ and pulled — never pushed — with directus-sync:
vp run directus:pull # refresh the committed dump
vp run directus:diff # detect drift against the dumpBoth need DIRECTUS_PROBE_ADMIN_TOKEN in web/.env, the same admin token the
permission probes use. The task says so and stops when it is missing.
What the repo does push are the Czech e-mail templates and the hook
extension under directus/, with vp run directus:push (needs the coolify
CLI).
docs/directus.md covers the rest: the MCP endpoint, where a permission rule lives in the admin app and in the dump, the role and file-folder scoping, and the permission probe suite with its tokens and fixtures.
web/ is a Nuxt app split into layers under web/layers/ (base, directus,
auth, shop with its nested mock-gopay); imports only point down that
stack. The rules, and everything else an agent or contributor needs before
touching code, are in CLAUDE.md.
- GLOSSARY.md: the domain terms (Course, Order, Entitlement, …) as the code and the copy use them
- docs/shop.md: how the shop layer sells a Course, from the Catalog to GoPay settlement
- docs/analytics.md: cookie consent and the Meta Pixel and Clarity gates
- docs/directus.md: operating the CMS
- docs/adr/: the architecture decisions behind all of the above
- docs/cloud-routines.md: the weekly dependency and docs routines
Hosted on Coolify, built with Nixpacks. The
jedlik-nejedlik-production app auto-deploys on push to master.