Skip to content

About

An education site built for my wife ♥

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

jedlik-nejedlik

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.

Tech stack

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

Prerequisites

Getting started

vp install                        # install dependencies
cp web/.env.example web/.env      # seed local env
vp run dev                        # start the Nuxt dev server

The 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.

Code quality

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+:

  1. check:lint — oxfmt + oxlint (vp check)
  2. check:slowlint — full ESLint
  3. check:typecheck — nuxi typecheck
  4. check:fallow — dead-code / unused-export detection
  5. check: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.

Content & CMS

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 dump

Both 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.

Code layout and docs

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.

Deployment

Hosted on Coolify, built with Nixpacks. The jedlik-nejedlik-production app auto-deploys on push to master.

About

An education site built for my wife ♥

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages