@bluealba-public/pae-bootstrap-lib
v1.0.1
Published
PAE library for bootstrapping platforms
Downloads
161
Readme
pae-boostrap-lib
BlueAlba Platform Boostrapping library. Used by bootstrap modules to setup the platform applications definitions.
Example usage
bootstrapPlatform({
path: join(process.cwd(), 'src', 'data')
})
Folder & Files conventions
Each folder potentially represents an application if it has an application.json
file.
Each folder might optionally contain definition files that must follow the names: (modules | operations | roles).json
If it defines an application.json
then all resources declared in the previously mentioned files will be automatically
created scoped to that application.
Otherwise a folder that doesn't have application.json
might define resources as well but they will be created
as global resources.
At the top there are platform defitions such as shared-libraries.json
.
- shared-libraries.json
- my-application
application.json
modules.json
operations.json
roles.json
- another-application
application.json
modules.json
operations.json
- third-application
application.json
modules.json
- global (all folders without an application.json will create global resources)
modules.json
operations.json