Configuring the domain
The domain configuration is the basis for creating the domain artifacts
Last updated
Was this helpful?
The domain configuration is the basis for creating the domain artifacts
Last updated
Was this helpful?
Within this folder src/domains/General/Category
created previously (see Domains) we will create the settings.js
of theCategory
entity. The final path to this file will then be src/domains/General/Category/settings.js
. Settings File are documents that aggregate basic domain configuration properties.
Within this file we will export the 3 consts commonly used by it: path
, domain
and resource
.
In path
we will inform the base URL of the domain screens that we are configuring, to see more about it check the Settings page.
The domain
property, in turn, has the value general.category
because the path to the domain is src/domains/General/Category
and it will be used to recover some resources needed in the construction of the screens.
Finally, inresource
, the value/general/category
was used to compose the requests that will be made to the APIs used.