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]
The problem
Companies need to find trainers by area and availability. Trainers want visibility, but without exposing their personal details to just anyone.
Architecture
Deployment flow
Key decisions
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.
Production incidents
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]