Skip to content
DyClubSolutions

Engineering & architecture

A short, honest description of how the DyClub Platform is put together. The product is a private codebase, so this page describes structure and decisions rather than source.

Monorepo

Services and databases

core/
Node.js 22 · Express 5 · MySQL 8

Multi-unit core and the operations module: activities, tasks, proposals, submissions, notifications, unit memberships.

ctd-api/
FastAPI · SQLAlchemy · Alembic · PostgreSQL 16

Regulatory records module for Party and Youth Union dossiers. Own database and own migrations; authenticates with signed, time-limited JWTs (HS256).

noti-api/
Python · Alembic · PostgreSQL 16

Notification service, deployed as its own container alongside the other two.

web/
React · Vite · TypeScript

Shared frontend that is replacing the original vanilla-JS client in core.

The core module uses MySQL and the regulatory module uses PostgreSQL. They are separate services with separate databases, which keeps sensitive dossier data out of the operations database.

Access control

Roles and invariants

  • admin / vice_admin
    Executive board. Full access across the unit.
  • leader / vice_leader
    Team leads. Manage their own team's members, tasks and reviews.
  • member
    Regular member. Sees assigned work and can log completed work for review.
  • Every list and detail query is scoped by unit through one central policy module, not per-route ad hoc checks.
  • Anti-self-review: a regular member cannot approve their own work. Only leadership can review and bypass.
  • Sign-in for university users is Microsoft single sign-on, restricted to the university's email domains.
  • Platform owner (DyClub as operator) is a global administrator by design. This was an explicit, recorded decision, not an accident.
Process

How we work

  • Decisions are written as numbered architecture decision records (ADRs) in the repository.
  • Features are specified before they are built. Specs live in the repo and drive implementation, including with AI coding agents.
  • Project documentation is versioned and checked in CI; a change that touches behavior must update its docs and bump the version.
  • Two environments (staging and production) run as separate Docker Compose projects with separate databases and ports.
  • Branch flow: staging for integration with required green CI, then a pull request to main for production.

Deployment

Each environment is a Docker Compose project: core, the MySQL database, ctd-api, its PostgreSQL database and the notification service, behind an Nginx reverse proxy with TLS. Images are built in CI and pulled from a container registry. The same packages are what an institution would run on-premise.

Want to review the architecture in detail?

We share the ADR index, schema contract and a live pilot walkthrough with institutions and program reviewers on request.

Request a technical walkthrough