← All projects

B2B training marketplace

Anonymized client

A trilingual platform (ES/CA/EN) that connects freelance trainers with companies across Spain, running in production on a self-managed server.


My role
Technical lead: architecture, development, infrastructure and deployment.
Status
In production.
Stack

Prisma 7 · Tailwind 4 · Docker · GitHub Actions · [to complete: framework and database]

Companies need to find trainers by area and availability. Trainers want visibility, but without exposing their personal details to just anyone.

SELF-MANAGED SERVERSELF-MANAGED SERVERReverse proxyReverse proxyReverse proxy → Application (ES/CA/EN)Application (ES/CA/EN)Application (ES/CA/EN)Application (ES/CA/EN) → DatabaseApplication (ES/CA/EN) → Email deliveryDatabase Sessions with hashed tokens (SHA-256)DatabaseSessions with hashedtokens (SHA-256)Email deliveryEmail delivery
SELF-MANAGED SERVERSELF-MANAGED SERVERReverse proxyReverse proxyReverse proxy → Application (ES/CA/EN)Application (ES/CA/EN)Application (ES/CA/EN)Application (ES/CA/EN) → DatabaseApplication (ES/CA/EN) → Email deliveryDatabase Sessions with hashed tokens (SHA-256)DatabaseSessions with hashedtokens (SHA-256)Email deliveryEmail delivery
Trunk-basedTrunk-basedTrunk-based → GitHub ActionsGitHub ActionsGitHub ActionsGitHub Actions → Image pinned by digestImage pinned by digestImage pinnedby digestImage pinned by digest → Manual deployManual deployManual deployManual deploy → ProductionProductionProduction
Trunk-basedTrunk-basedTrunk-based → GitHub ActionsGitHub ActionsGitHub ActionsGitHub Actions → Image pinned by digestImage pinned by digestImage pinned by digestImage pinned by digest → Manual deployManual deployManual deployManual deploy → ProductionProductionProduction
What reaches production is exactly what was tested.
  • Architecture documented before coding: architecture and concept documents that act as the rulebook for people and AI agents alike.

  • UUIDv7 primary keys: sortable by creation time, friendlier to indexes than UUIDv4, and they don't reveal how many records exist.

  • Server-side sessions instead of JWT: a session can be revoked instantly, and tokens are stored as SHA-256 hashes, so a database leak doesn't grant access.

  • Sparse availability and coverage by province: only what's needed gets stored, and searches stay simple and fast.

  • Privacy by design: a public landing page with no login, search reserved for companies, and no personal data visible without signing up.

  • Controlled deployment: trunk-based development, manual deploys from GitHub Actions and promotion of digest-pinned images, so what reaches production is exactly what was tested.

  • Rebuilt from scratch (Nov 2026): following my own issue, CI/CD and deployment methodology instead of patching the first version any further.

  • A bcrypt hash reached the application corrupted because Docker Compose read its “$” characters as variables.

    [to complete: how it was fixed]

  • Ports published by Docker bypassed the firewall (ufw), because Docker writes its own iptables rules.

    [to complete: how it was fixed]