Expand description
Application bootstrap: one call to load config, connect, migrate, build the admin router, and serve it.
Bootstrap keeps an application’s main small and stable: framework
internals (config fields, the migration runner, router assembly) change here,
not in every app. An app registers its own modules; each module supplies its
migrations and admin surfaces (resources, permissions, settings) from its
register, and the app adds extra routes via Bootstrap::extend.
Structs§
- AppConfig
- The configuration
Bootstraploads. An app needing more loads its own withlaterite_core::config::load. - Bootstrap
- Builds and serves a Laterite application.
- Bootstrap
Ctx - Passed to
Bootstrap::extendso an app’s own routes can share the database and the detected database capabilities. - Plugins
Config - Deployment control over which plugins load. A disabled plugin’s migrations do
not run and it contributes nothing; any plugin that
requiresa disabled one is skipped in turn. Built-in modules cannot be disabled.
Constants§
- DEFAULT_
ENV_ PREFIX - Default env-var prefix for config overrides (
LAT__SECTION__KEY). An app declares its own asapp.env_prefixin its config, whichBootstrapand thelatcommand both read;Bootstrap::env_prefixoverrides even that.