Overview
Initial Scaffolding
This page describes the initial bootstrap when AppSettings.firstRun = true.
With a tutorial package there is nothing to scaffold
The scaffolding this page is about — reading the tables of a database and registering them in
_metadati__tabelle / _metadati__colonne — applies only to the "Existing database" mode of
the first-run wizard: that is where the *Scaffold the tables of the selected database
automatically* checkbox lives.
In tutorial packages that checkbox does not exist. The metadata database arrives already
populated (routes, columns, menu, translations, sample dashboards) and the wizard only restores
it and creates the admin user. Seeing ready-made routes right after the first start is therefore
not the result of scaffolding: it is the content of the tutorial.
| Wizard mode | What happens to the metadata |
|---|---|
| Tutorial WideWorldImporters | Metadata already built, restored from the package. No scaffolding at all. |
| Existing database, checkbox off | An empty metadata database: you register the routes yourself, by hand or later from the Scaffolding page. |
| Existing database, checkbox on | At the end of the installation every table of the chosen database is registered as a route. |
The rest of this page applies to the last two rows of that table.
When to Use It
- New installation (metadata/data DB not yet ready).
- Local environment to realign with initial setup.
- First launch after deploy where you want to force the guided provisioning procedure.
Behavior with firstRun=true
- The
GET /api/Meta/FirstRunStatusendpoint exposesfirstRun: true. - At login, the first run flow appears (e.g.,
Updateaction on the screen). - The setup applies base configurations (connections, runtime settings, metadata bootstrap).
Typical Operations
- Verify
AppSettings.firstRunistrueinappsettings.{Environment}.jsonof the host you are running. - Start the application and complete the initial scaffolding procedure from the UI.
- Check that connections and main parameters are consistent (
dbms,DataDBName,ConnectionStrings).
After Provisioning
- The setup procedure sets
firstRuntofalseto avoid re-executions on each start. - Perform a standard login and validate access to the main routes.
- With
firstRun = falsethe wizard methods (e.g.configure_wuic) answer only administrators. - Oracle installations and MySQL installations with the tutorial created with packages up to 1.7.12: the first-run scripts contained the e2e test users (
wuic_e2e_admin*,guest_1), which must not exist in production. Check theutentitable and delete or disable those users; since 1.7.13 the scripts no longer contain them.
Screenshot
