The Genio backoffice is of utmost importance, especially during the initial phase when GenioWeb is still in its early stages of development. In this initial phase, GenioWeb may have limited functionalities, and to compensate for that, the Genio backoffice plays a crucial role in supporting various project management tasks.
By utilizing the Genio backoffice during this initial phase, users can effectively bridge the gap between the current state of GenioWeb and their project requirements.
The main functionalities for application development are mostly implemented, however for other functionalities, such as special renderings, EPHs or other more advanced ones, it is necessary to use the genio backoffice.
It ensures a smooth project development experience, empowering users to efficiently organize, monitor, and control their projects until GenioWeb matures and encompasses more robust project functionalities.
The installation process can be divided into two distinct parts to ensure a smooth setup experience:
The first part involves preparing the environment without the generation service. This step focuses on configuring the necessary infrastructure, such as setting up the required hardware and software components. It includes tasks such as installing the operating system, setting up the database, configuring network settings, and preparing any additional prerequisites. During this phase, the Genio backoffice serves as a valuable support tool, providing guidance and assistance throughout the environment setup.
Once the environment is properly prepared, the second part of the installation process involves enabling the generation service. This step is specifically dedicated to configuring and activating the Genio generation service, which is responsible for generating code, scripts, and other artifacts based on the defined models and rules. This phase includes configuring the generation service settings, connecting it to the database, and ensuring that all necessary dependencies are in place. The Genio backoffice continues to be a valuable resource during this stage, providing support and assisting in the activation and configuration of the generation service.
By dividing the installation process into these two parts, users can focus on each aspect separately, ensuring a systematic and efficient setup. The Genio backoffice plays a crucial role in providing support and guidance throughout both stages, enabling users to navigate the installation process with confidence and ease.
You can get Extract both zips files to the respective folder from fileserver:
The directory tree should be:
..\Genio
..\GenioWeb
..\Projects
The folder where new projects will be created, and to where the service will internally generate the applications. This folder must be accessible by both the Generation Services and the WebAdmin.
The user for generation services must have full control, and the WebAdmin user must at least have read access.
Example folder C:\Quidgest\Projects
[INIT]
DBMS = SQLSERVER
SERVER = XXXXXXX
[GENIO]
PATH = The path of Genio backoffice (E.g. `C:\Quidgest\Genio`)
PROJECTS = The path to store all projects (E.g. `C:\Quidgest\Projects`)
In Genio backoffice directory e.g.C:\Quidgest\Genio\GEN
, you can find the executable Gengenio.exe
.
After open Genio, add a new project.
NOTE: please, ensure the "Program subpath" required, has the follow criteria GEN[System]0
- System is the name of you System. See the example below:
To proceed with this step, it is important to have knowledge of how to publish an application on Internet Information Services (IIS). To assist you in this process, we provide a general guide on XXXXXX web aplication guide. Please follow the instructions in our guide, which can be accessed at the following link: install a Web Application.
Generation services are a bundle of REST Api methods used to generate an application. The service must be published as a Website and fully accessible to both the Application and the WebAdmin instance.
Follow the documentation on Website deployment on IIS7.
NOTE: Don't forget to ensure that the necessary dependencies are updated, namely the .Net Core and Hosting bundle.
For versions beyond 338.14, it is recommended to utilize .NET 8
Example url after publishing: http://localhost/GenioWebService/
Example folder where services are installed: C:\Quidgest\GenioWeb\services
You can also prepare the service files according to the generation service needs:
C:\Quidgest\GenioWeb\services
appsettings.json
within the service directory;appsettings.json
file using a text editor of your choice.appsettings.json
file. This ensures proper deployment and access to your application.Example below:
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*",
"GenioConfig": {
"GenioPath": "..\\GenioFolder",
"ProjectsFolder": "C:\\Quidgest\\GenioWeb\\Projects",
"DbUser": *******,
"DbPassword": *******
},
"VirtualDirectory": "\thttp://localhost/GenioWebService/"
}
In GenioWeb, WebAdmin is responsible for creating new projects, calling generation services and ensuring version upgrading, so take that into account when designing your infrastructure.
Example url after publishing: http://localhost/GenioWebAdmin/
Example folder where the application is installed: C:\Quidgest\GenioWeb\WebAdmin
System Configuration
menu:Database
Tab:
GEN[System]0
GEN[System]0
Application
Tab:
C:\Quidgest\GenioWeb\app
More
Tab:
Add three new properties in MORE PROPERTIES
section:
GenioPath: The absolute path for where the GenioFolder is installedKey | Value |
---|---|
Genio Path | C:\Quidgest\GenioWeb\GenioFolder |
generationservices | http://localhost/GenioWebService/ |
projectsFolder | C:\Quidgest\Projects |
Publish the application like a normal Vue.js application. Don't forget to place the configuracoes.redirect.xml with the correct path to WebAdmin configuration file
Example url after publishing: http://localhost/GenioWeb/
Example folder where the application is installed: C:\GenioWeb\app
The GenioFolder has the templates and all the metadata necessary for Genio to generate a version. This folder must be accessible to both the Application IIS user and the Generation Service.
It's recommended that the folder is placed in the same directory as the services.
If you don't want to install the GenioFolder next to the service directory, make sure that you configure the correct path in
app.config
file in the service folder. Go to the root of the service installation, find the appsetting.json file and change the GenioPath property to the absolute path of where you installed the Genio Services
Example folder: C:\GenioWeb\GenioFolder
NOTE: In this initial phase, the Genio Folder came with the GenioWebNightly. You don't need to worry about.
During the initial phase of your project, it is essential to configure a scheduler to ensure that the generation process is executed automatically and efficiently. To fulfill this requirement, we introduce the Quidserver, a Windows service designed specifically for scheduling periodic tasks and acting as a message broker for message queueing.
The QuidServer plays a crucial role in automating the generation process by enabling you to schedule the execution of tasks at predefined intervals. It eliminates the need for manual intervention, allowing you to focus on other critical aspects of your project. By configuring the QuidServer, you can define the frequency and timing of code generation, ensuring it occurs consistently and according to your project requirements.
NOTE: The suggested frequency is 5 seconds.
http://localhost/GenioWebAdmin/WebApi.asmx
. NOTE: This URL is crucial as it determines the endpoint where the scheduled task will be executed and processed.
Your task should be presented with the following appearance, as illustrated in the figure below: