Settings.json
Configure certain aspects of the existing front-ends without the need for a recompile.
The settings.json file exists primarily to allow configurable settings that don't require a full rebuild of a frontend - also some visual elements can be controlled by these settings like headings, positions, icons, and colors etc. Some of the configurable settings include:
Composer settings, like domain, protocol, and auth method.
Basic App-level visuals; title, meta details, logos, etc.
Top-level menu listings
Banner child element organisation and appearance.
Page routes and titles.
Bookings - granular conditional settings
The settings.json file can become monolithic but this, for the moment, allows backend devs, or anyone not frontend-familiar with git repo access, the ability to change visuals and other aspects of an app easily.
When approaching an existing frontend first check to see if the change can be made in the settings.json file; it might save some headache.
Overview
Composer config
The default composer config is setup for simple local development, if you require your app to work in conjunction with a local Engine instance then the domain
setting will have to match the corresponding domain listing in the admin panel of the instance (Backoffice).
For example:
NB: This assumes the app is being served with default settings with the gulp serve
terminal command - i.e. utilizing port 4200
. A production settings.json
file will be created from this with modified settings at compile time. These production values overrides will exist within /config/default.ts
.
Cosmetics/Supplementary Details
In this example basic app-wide details are specified; these include page-wide titles/meta data details, logos, GA code, and toggles for when to show hero banners. All things that can be configured post build.
Granular Configurations for Sections
This snippet shows the configuration options for room booking on the default ACA Staff App.
Last updated