You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To support the addition of new State and Alarm modules, we will refactor index.js into separate modules that handle each bootstrap task. Bootstrap tasks include:
setting up middleware
preparing dynamic content for web app environment file
starting the server
checking that db and oidc services are available
entering/leaving an operational state
The final bootstrap task (entering/leaving an operational state) is currently primitive and uses a simple top-level object to track state. This will be maintained during the refactor, and that task will be modified when #1503 is developed.
The text was updated successfully, but these errors were encountered:
I worked with ChatGPT to get ideas for a more modular bootstrap process. It is not fully working code, some of the necessary tasks are not implemented yet. Note that the branch uses app.js as the entry point instead of index.js, which is retained as the benchmark of what needs to be covered.
To support the addition of new State and Alarm modules, we will refactor
index.js
into separate modules that handle each bootstrap task. Bootstrap tasks include:The final bootstrap task (entering/leaving an operational state) is currently primitive and uses a simple top-level object to track state. This will be maintained during the refactor, and that task will be modified when #1503 is developed.
The text was updated successfully, but these errors were encountered: