On this page8
Right-to-left Persian and left-to-right German on one client-run counselling site.
- Database tables
- 30
- Lines of application code
- ~6,160
- Runtime package
- 1
At a glance
- Area
- Web platforms and migration
- My role
- Sole engineer: design, build, deploy and run
- Built with
- Node.js 22, PostgreSQL, TipTap, Nginx
- Client
- Rhythmus des Lebens, a private counselling practice
- Timeline
- About 3 weeks in 2026
- Status
- Live
- Area
- Web platforms and migration
- My role
- Sole engineer: design, build, deploy and run
- Built with
- Node.js 22, PostgreSQL, TipTap, Nginx
- Client
- Rhythmus des Lebens, a private counselling practice
- Timeline
- About 3 weeks in 2026
- Status
- Live
The problem
A counsellor needed one website for two audiences in two scripts.
It had to meet German privacy law (GDPR, TDDDG cookie rules, Impressum and Datenschutz pages), be found in Persian and German search, and be editable by the client with no code changes.
What it does
Visitors
Read the site in Persian or German, each at its own clean address
Client
Edits the site from an admin panel with a rich-text editor, with no code changes
Search engines
Get hreflang links and structured data for both languages
Privacy
Cookie consent with Reject all on the first layer, at the same weight as Accept all
Visitors
Read the site in Persian or German, each at its own clean address
Client
Edits the site from an admin panel with a rich-text editor, with no code changes
Search engines
Get hreflang links and structured data for both languages
Privacy
Cookie consent with Reject all on the first layer, at the same weight as Accept all
What I built
Server and sign-in
Rendered on Node 22 with its built-in HTTP module, in 19 modules. Sign-in uses scrypt password hashing and database-backed sessions.
Database
A PostgreSQL schema with 30 tables for articles, translations, menus, consent, SEO rules, users and more.
Two languages
Persian and German pages at clean addresses, with hreflang links and JSON-LD structured data.
Four design themes
Each redefines colour, radius, shadow, type and motion through CSS custom properties, so a new theme changes tokens, not components.
Phone and desktop
The two renders are separate, each with its own markup, IDs and CSS.
Editor and backups
A TipTap rich-text editor, and a backup script that captures the database, code, nginx config and checksums, with written steps for restoring on another server.
Inside the platform: the home page
The home page of the live site is shown at the top of this page, with its menu, language switch, hero, introduction and latest articles. The counsellor's name and portrait are hidden here.
One site, two languages, switched from the menu.
Language switch
German and Persian side by side in the menu
Content
Articles, each with its own photo and date
Language switch
German and Persian side by side in the menu
Content
Articles, each with its own photo and date
Key decisions
DecisionHow and why
- No web framework
- The proposal recommended Next.js, Payload CMS and Tailwind. I built on Node built-ins instead. The server code imports one package, the PostgreSQL driver, which keeps the dependency surface small and gives full control of rendering and routing.
- Deployment identity lives in the database
- Domain, base path and admin path are read from settings on each request, so moving to a new domain is a database update, not a redeploy.
- Design tokens only
- Every colour, space and radius is a CSS variable, enforced by stylelint.
- Legal compliance as a feature
- Consent wording and categories are database rows, so the client can change them without a deploy.
DecisionHow and why
- No web framework
- The proposal recommended Next.js, Payload CMS and Tailwind. I built on Node built-ins instead. The server code imports one package, the PostgreSQL driver, which keeps the dependency surface small and gives full control of rendering and routing.
- Deployment identity lives in the database
- Domain, base path and admin path are read from settings on each request, so moving to a new domain is a database update, not a redeploy.
- Design tokens only
- Every colour, space and radius is a CSS variable, enforced by stylelint.
- Legal compliance as a feature
- Consent wording and categories are database rows, so the client can change them without a deploy.
For engineers: how this was built
Result
A working bilingual site with an admin panel, consent system and SEO engine, delivered in about 3 weeks as the only developer.
Hiring someone to turn business problems into tools?
Tell me about the role, or see next: the portal that replaced an industrial company's legacy system.
- Section
- Web platforms and migration
- Updated
- November 9, 2026
- Reading time
- 3 min read
Hiring for this kind of work?
Tell me about the role and I will reply by email.
Discuss a role with me
