2026-05-15 14:04:10 +02:00
2026-05-15 14:04:10 +02:00
2024-05-10 16:20:19 +02:00

neuf-www

The neuf.no website. Wagtail CMS backend (dnscms/) feeding a Next.js frontend (web/) over GraphQL.

Tools are managed by mise. Run mise install to get python, uv, node, and prek.

Backend (dnscms/)

cd dnscms
uv sync
uv run ./manage.py migrate
uv run ./manage.py runserver
uv run pytest

GraphQL endpoint: http://127.0.0.1:8000/api/graphql/.

Frontend (web/)

cd web
npm install
npm run dev         # http://localhost:3000
npm run codegen     # regenerate GraphQL types (needs the backend running)
npm run build

Pre-commit hooks

prek runs ruff lint + format on dnscms/**/*.py plus a few sanity hooks. Hooks are configured in prek.toml.

prek install            # registers the git hook
prek run --all-files    # run on everything
S
Description
No description provided
Readme 8.1 MiB
Languages
TypeScript 73%
Python 24.1%
SCSS 2.6%
Dockerfile 0.1%