Project structure & config

A step of the Cloud application tree on Gradus, in the Build & ship area: Config, lint, releases, IaC.

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.

Leads to: Linting & formatting, 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.

This is https://gradus.kazet.blog/tree/cloud-application/step/project-structure as plain HTML. In a browser the page also lets you mark the step forged and copy a message for your AI assistant.