# Project structure & config

A step of the [Cloud application](https://gradus.kazet.blog/tree/cloud-application) tree on Gradus, in the Build & ship area: Config, lint, releases, IaC.

Page: https://gradus.kazet.blog/tree/cloud-application/step/project-structure

Establish a conventional folder structure and a config module that validates environment variables at startup, so new code has an obvious home and a bad deploy fails fast.

Usually comes after: [Continuous integration](https://gradus.kazet.blog/tree/cloud-application/step/ci-pipeline).

Leads to: [Linting & formatting](https://gradus.kazet.blog/tree/cloud-application/step/lint-and-format), [Infrastructure as code](https://gradus.kazet.blog/tree/cloud-application/step/infrastructure-as-code).

## Prompt for your AI assistant

```
Reorganise this project into a conventional structure for its stack and add a config module that loads every setting from environment variables, applies sane defaults and refuses to start when a required value is missing.
```

Every step of the tree: https://gradus.kazet.blog/tree/cloud-application/llms.txt
