(Note · · 5 min read)

A new developer loses two days to setup

Someone joins, follows the readme, and spends a day and a half on database versions, missing environment variables and a build step nobody documented. That time is not inevitable — it is a consequence of decisions about the repository that were never made deliberately.

By Md. Habibur Rahman Shohel, full-stack & AI product engineer in Dhaka

One command, written down and tested

The target is: clone, run one command, have a working application with usable data. Everything else in this note is in service of that sentence.

Test it by doing it. Clone into a fresh directory and follow your own instructions without using anything already on your machine. Every step that fails is a step a new person would have hit, and you are the only person who can find them cheaply.

Containerise the services, not necessarily the app

Databases, caches and queues are where version differences hurt, and where a container removes the whole category of problem. The application itself is often more pleasant to run directly, with fast reloads and a debugger that attaches.

Offer both: bring up only the dependencies, or the whole stack. The ERP I built does exactly that — one compose file that can start just the database or the entire application — because those are two genuinely different needs.

Commit an example configuration

Keep a checked-in example file listing every variable the application reads, with safe local defaults and a comment for each. Never commit real secrets; the example exists so nobody has to guess the list.

Validate configuration at startup and fail with a message naming what is missing. A missing variable surfacing as an unrelated error three screens into the application is a significant part of that lost day.

Seed data is the part people skip

An empty database is not a working application. You cannot see a list, test a permission or reproduce a bug without data, and every developer inventing their own means bugs that reproduce for one person.

Commit a seed covering the shapes that matter: more than one account or tenant, each role, a record in each state, enough rows to make a slow query visible. The two-tenant detail is a correctness feature — with one tenant seeded, every missing isolation filter passes.

Migrations, not a dump

Schema changes belong in versioned migrations run by a command, so a developer updates by pulling and running one thing. A shared dump passed around drifts from the code and nobody can say which version a given database is at.

Make resetting easy: drop, migrate, seed, in one command. People experiment more freely when the cost of breaking their local state is ten seconds.

The readme is part of the product

Prerequisites with versions, the one command, how to run tests, how to reset the database, and where to look when the usual thing goes wrong. Short, current, and in the repository rather than in a wiki that has been wrong since the last reorganisation.

Keep it honest about what is not automated. A documented manual step is a known cost; an undocumented one is someone's afternoon, and they will assume they did something wrong.

Common questions

What should local setup look like?

Clone, run one command, get a working application with usable data. Test it by cloning into a fresh directory and following your own instructions without relying on anything already installed — every failure is one a new person would hit.

Should the whole stack run in containers?

Containerise the services where version differences hurt — databases, caches, queues — and offer the application either way, since running it directly gives faster reloads and easier debugging. One compose file that can start just the database or everything covers both needs.

Why does seed data matter so much?

An empty database is not a working application: you cannot see a list, test a permission or reproduce a bug. Seed more than one tenant, each role and a record in each state — with a single tenant seeded, every missing isolation filter passes its tests.

Are database dumps a good way to share schema?

No. Use versioned migrations run by a command, so updating is pull-and-run. A shared dump drifts from the code and nobody can say which version a given database is at. Make drop-migrate-seed a single command too.

Need something like this built?