Back to Coding

How Do You Set Up a Project From Nothing?

How Do You Set Up a Project From Nothing?
AI Tutorials Team 28 January 2026

The first hour of a project is arranging things: folders, configuration, dependencies, version control, a way to run it. It is dull, conventional and largely identical across projects, which makes it well suited to generation and easy to accept without reading.

What should exist before any features?

  • Version control. Initialised before the first line, not after.
  • A way to run it. One command, documented.
  • Environment configuration. With secrets outside the repository.
  • A single working page or endpoint. Proving the whole path works.
  • A readme. Three lines: what it is, how to run it, what it needs.

Why does the working endpoint matter first?

Because it proves the entire chain: the code runs, the framework serves, the port is right, the browser reaches it. Every later problem can then be attributed to what you added rather than to setup.

Building three features before running anything is how people end up debugging four things at once.

The readme deserves more attention than it gets, since it is what you will read in three months when you have forgotten how to start the thing. Three lines written now saves twenty minutes then.

What is the risk with generated scaffolding?

Volume you did not read. A framework scaffold plus generated additions produces dozens of files, most of which you will never open, and by week three you cannot tell which are yours and which came with it.

Set up the minimum: one entry point, one route, configuration read from the environment, and nothing else. Explain each file you create and why it exists. Do not add a folder structure for things I have not built yet.

Why avoid structuring in advance?

Because a folder layout designed for a large application, applied to a project with four files, adds navigation cost and no benefit. Structure that emerges from actual code is better than structure imposed before there is any.

Moving files later is trivial; unpicking an architecture you did not need is not.

How should configuration work?

Read from the environment, with an example file in the repository listing the names of every value and no actual values. That arrangement works locally and in deployment, and it makes it obvious what somebody else would need to supply.

Secrets in the code is the mistake that follows a project for its whole life, because they remain in the history.

Pinning dependency versions is worth doing from the first commit, since a project that installs whatever is current will eventually break because something updated while you were not looking.

What about the ignore file?

Set it up before the first commit, since removing something from history afterwards is genuinely awkward. Dependencies, environment files, local databases and editor configuration all belong in it.

What should the first commit contain?

The minimum that runs. That gives you a known good state to return to, which is what makes the following weeks recoverable when an evening goes badly.

Should you start from a template?

A framework's official starter, yes; an elaborate community boilerplate, usually not. The official one is current, documented and minimal, where the popular boilerplates arrive with testing arrangements, authentication, a component library and eleven decisions somebody else made.

Those decisions are frequently good and they are not yours, and a project that begins with two hundred files you did not write starts in the position this whole subcategory is trying to avoid. Adding things as you need them takes longer and leaves you able to explain every file in the repository.

How long should this take?

Under an hour. If setup consumes an evening, something is wrong with the choice of tools rather than with your approach, and switching to something with a simpler starting point is the right response rather than persevering.