-
Notifications
You must be signed in to change notification settings - Fork 0
framework
#Select frameworks and other options in Magic-Compose In this section we explain about the tools and framework which can be enable by simply setting the value for the flag to true and false or from any valid possible values. In a mgic-compose json file the parent element for these cnfigurations is configs
Note: These elements may vary according to the framework and tool selected for project. Currently these are specific to spring Boot and related frameworks.
!!! warning Do not use blank spaces and special characters in any of vlues for these element using which may cause failure in application generation.
"configs": {
"portNumber": 8080,
"swaggerEnabled": true,
"loadBalancingEnabled": false,
"cloudconfigEnabled": true,
"dockerEnabled": true,
"swaggerEnabled":true,
"serviceRegistrationEnabled": false,
"securityEnabled": false,
"metrics":{
"jmx":true,
"graphite":false,
"atlas":false,
"prometheus":false,
"datadog":false
} ,
"devdb": "H2",
"proddb": "MYSQL"
}!!! note "" Possible Value : NA
This is the parent element for defining framework selections and other configurations in ***Magic-Compose***. You will always define your project tools and frameworks within this section.
!!! note "" Possible Value : Any valid port number (integer value)
Port number on which the generated application shall run. This property shall be used to configure the ``` server.port``` property in the spring boot configurations
!!! note "" Possible Value : true/false Default:true
Weather docker related settings has to be enabled or not. The value for the same is **true** by default.
!!! note "" Possible Value : true/false
Option to control weather client side load balancing has to be enable or not. We use Netflix Eureka Ribbon client to achieve load balancing
!!! note "" Possible Value : true/false
Option to control weather client side load balancing has to be enable or not. We use Netflix Eureka Ribbon client to achieve load balancing
!!! note "" Possible Value : true/false
Option to control the centralized configurations has to be enabled or not. We use spring-cloud-config. And with the Config Server you have a central place to manage external properties for applications across all environments.
!!! note "" Possible Value : true/false
If you want the service-registry to be enabled in your generated project then set this option to true.
Currently we support Netflix OSS Eureka Regsitry for service regsitration. We have plans to enable this for **consule** as well
!!! note "" Possible Value : true/false
Set this option to **true** if you want **spring security** framework capabilities to be unabled in the generated application. by default all the URL's shall be secured. And the username and password for which can be configured in application.properties. By default both are set to project name.
!!! note "" Possible Value : true/false
Wheather you want your application to expose actuator end points. Enabling the feature of Spring accuator.
**This has to be true if you want monitoring to be enabled**
!!! note ""
this is the parent tag for metrics and supported below options. You only need to set the value to true for each reporting system you want to support. Currently supported systems are listed below. **The individual settings for each system is work in progress. Currently all the reporting systems are enabled with default settings. In next patch we shall be rolling out the properties support for each**
* jmx
* graphite
* atlas
* prometheus
* datadog
!!! note "" Possible Value : H2/MYSQL
Database to be used in development profile
!!! note "" Possible Value : H2/MYSQL
Database to be used in production profile