Bootstrap
H1
Bootstrapping is used to perform certain tasks during startup.
In your /milkio.ts
file, you can pass the bootstraps
option to createMilkioApp
. It is an array that can contain any number of regular functions, which can be synchronous or asynchronous.
During startup, all the functions in the bootstraps
array will run simultaneously (yes, this means they are executed in parallel) and the startup phase will only end when all the functions have completed execution. If you want the functions in bootstraps
to execute in a specific order, you can use the Middleware feature to achieve that.