Backoffice Application
In order to simplify the creation of the Backoffice an Application is available in the Marketplace that allows the user to configure it in a few clicks.
Instantiation steps
After having selected the Backoffice application in the Marketplace, these steps have to be followed:
1. Backoffice resources configuration
Once the name to the application has been given, these are the following steps shown by the creation wizard:
configuration of the Microlc Frontend microservice
configuration of the Backoffice Backend microservice
configuration of the Microlc Element Composer Plugin microservice
configuration of the Back Kit microservice
For each step, the user can decide either to configure that new specific resource, or to add an existing microservice to the application.
2. Backoffice resources creation
The final step of the configuration wizard summarizes which resources will be created and which ones will be linked to the application because already existent.
Then by clicking on Create button, the Backoffice application will be created, and you can see it on its detail page into the Applications section.
3. CRUD creation
The Backoffice application is shipped with an example page, the configuration of which can be found in the cms-page.json
config map of the Backoffice Backend microservice. This configuration is built on a CRUD with a specific schema (outlined
in the dataSchema
object at the beginning of the file), which needs to be created.
Go to the CRUD
section and create a new collection named however you like with the following fields:
name
: Stringsurname
: Stringemail
: String (required)
You can create the fields importing this JSON file and following this guide.
4. Endpoints configuration
The next step consists in configuring the endpoints. Go to Endpoints
section, and create the following endpoints:
3.1 Endpoint configuration for Backoffice Backend
- Create a new endpoint;
- As
Base path
, use/api
;cautionThe endpoints exposed by the
Backoffice Backend
microservice must always be reachable at/api/v1/microlc/...
: as in the microservice we defined the environment variableSERVICE_PREFIX=/v1/microlc/
, here/api
is enough. - As type, use
Microservice
; - Select the microservice name used for the
Backoffice Backend
; - Complete the creation.
3.2 Endpoint configuration for Microlc Frontend
- Create a new endpoint;
- As
Base path
, use/
; - As type, use
Microservice
; - Select the microservice name used for the
Microlc Frontend
; - Complete the creation.
3.3 Endpoint configuration for Microlc Element Composer Plugin
- Create a new endpoint;
- As
Base path
, use/element-composer
; - As type, use
Microservice
; - Select the microservice name used for the
Microlc Element Composer Plugin
; - Complete the creation.
3.4 Endpoint configuration for Back Kit
- Create a new endpoint;
- As
Base path
, use/back-kit
; - As type, use
Microservice
; - Select the microservice name used for the
Back Kit
; - Complete the creation.
3.4 Endpoint configuration for CRUD collection
- Create a new endpoint;
- As
Base path
, use anything you want; - As type, use
CRUD
; - Select the CRUD created in step 3;
- Complete the creation.
5. Backoffice Backend configuration
The last step consists in hooking up the example configuration of the Backoffice Backend with the CRUD created.
- Go to
Microservices
section and open the Backoffice Backend microservice - Scroll down to the
cms-page.json
config map - Substitute
YOUR_CRUD_NAME
with the endpoint created at step 3.4
Final result
After these quick steps, your Backoffice application will start working.
For more information about its usage, visit the dedicated Backoffice section.