call(back)

How Would You Structure a Repo From Scratch?

How would you structure a repo from scratch?

Answer out loud in under a minute, from your own work first.

Hints

Hint 1

Say how you group folders, where tests live, and what runs in CI.

Solution

Show the approach

Answer

Group by feature, not by file type. Shared UI and utilities get their own folders, tests sit beside the code, and lint, format, type-check and test are wired into CI from the first commit.

Asked at