CaRMen

· Lars Nielsen

Four Rounds of Hand-Editing a MySQL Migration Before SQLite Would Run It

The very first Doctrine migration in CaRMen's history — the one that creates the user and messenger_messages tables — was auto-generated against MySQL and never meant to run anywhere else. For a stretch of 2025 it had to run against SQLite too, because the test suite used SQLite while the actual migrations were written for MySQL.

Read article Four Rounds of Hand-Editing a MySQL Migration Before SQLite Would Run It
· Lars Nielsen

API Platform Returned an IRI Instead of the Object, and Saving the Form Cleared the Owner

In CaRMen, my CRM, every deal has an owner and every activity has an assignee: a user. For a while the deal list showed "-" in the Owner column for every deal, which looked like a display bug. It was worse than that. Opening a deal and saving it, without touching the owner field, removed the owner from the deal. The same happened to an activity's assignee.

Read article API Platform Returned an IRI Instead of the Object, and Saving the Form Cleared the Owner
· Lars Nielsen

The First Real End-to-End Test Found a Login Error Nobody Had Ever Seen

CaRMen, the small CRM I run for myself, had unit and controller tests from early on, but nothing that drove an actual browser against the actual frontend until October. Setting up Playwright properly — @playwright/test instead of plain playwright, a Chromium-only project, role-based locators, a shared login helper — took one evening.

Read article The First Real End-to-End Test Found a Login Error Nobody Had Ever Seen
· Lars Nielsen

API Platform 4 Dropped the hydra: Prefix, and Every List in My CRM Went Empty

I run a small CRM for myself called CaRMen — a Symfony 7 API Platform backend with a React frontend. In August I had to bump api-platform/core from ^3.3 to ^4.0, not because I wanted the new major version, but because composer's own security-advisory audit flagged every 3.3.x and 3.4.x release in a row. There was no patched 3.x left to stay on.

Read article API Platform 4 Dropped the hydra: Prefix, and Every List in My CRM Went Empty
· Lars Nielsen

Symfony Login Throttling Behind a Reverse Proxy: Without trusted_proxies, Everyone Shares One IP

CaRMen, the CRM I built for myself, now runs as two public sites: the real instance and a demo. Public means bots find the login endpoint within hours, so in October I added rate limiting to logins and to password-reset emails. The limits themselves took a few lines of Symfony configuration.

Read article Symfony Login Throttling Behind a Reverse Proxy: Without trusted_proxies, Everyone Shares One IP
· Lars Nielsen

Building a CRM with Claude Code: An Honest Developer's Take

I recently spent an afternoon building an enterprise CRM from scratch using Claude Code — Anthropic's A I coding assistant that runs directly in your terminal. The stack: Symfony 7 on the backend with API Platform, React 18 with TypeScript on the frontend, PostgreSQL, and Docker Compose to tie it all together. Here's what I actually learned.

Read article Building a CRM with Claude Code: An Honest Developer's Take
Subscribe to CaRMen