Upgrade Appkit in Existing Apps
package.json
file at the root of your project, update the appkit-ui
dependency to the latest Appkit version, for example:
pom.xml
file at the root of your project, update the value of the parent.version
property to the latest Appkit version, for example:
Deploy App Studio
FUSION_PORT
value is 8764
. In Fusion 5.x, the default value is 6764
.command ./app-studio package
to generate the app-studio-enterprise.war
file. The file is created in the following location:
/<$Application>/dist/app-studio-enterprise.war
https://FUSION_HOST:FUSION_PORT/webapps/UI_CONTEXT/
.
Develop and Deploy with App Studio
http://localhost:8080
, where we can see most changes made to the code in real time.mvn clean jetty:run -Dtwigkit.profile=profileName
In App Studio apps, we can have different profiles for each environment (Dev, QA and Prod) as well as local development. These profiles contain configuration files that should overwrite the files with the corresponding names and directory locations in the main resources directory.For more details, see “Package the web application for different runtime environments - build profiles” at
https://dev.twigkit.net/docs/Getting_started/Installation/Building_from_source/?q=profile.message.service.fusion.conf
This config file is responsible for the configuration of the way we send signals to the Fusion endpoint. The important property here is query-profile
, which should point to the query profile that manages the main collection to which we want to send signals. For example, if we specify a query profile that points to the myCollection
collection, then App Studio sends signals to the myCollection_signals
collection (if it exists).
platforms.fusion.fusion.conf
This is our base Fusion platform configuration file. It manages all the configuration settings that are common amongst each Fusion platform. These settings are inherited by any config file in the platforms.fusion
directory, as this file has the same name as the directory it resides in.
platforms.fusion.data.conf
This is our configuration file for the main platform, by default. The only required parameter is the query-profile
to send these queries to. This is included in the profiles as during the course of development, there were some differences across environments in the name of this collection, so we set them individually for each environment.
security.kerberos.conf
This is an example of a security configuration file. In this case, the file in which Kerberos security is configured. The parameters set here are referenced in our configuration of resources/spring-security.xml
when the app is loaded. The main parameters to understand are service-principal
and keytab-location
. The service principal should be the one used when creating the keytab file. The keytab location is the location in which the keytab resides on the server where App Studio is running.
security.security.conf
The function of this file is to set general parameters related to security. The type
parameter should be the type of security your app should use (kerberos
, spring_security
, saml
, and so on). The password
parameter is the key that is used when hashing passwords using the twigcrypt
utility. It is to be used in combination with a ‘secret seed’ in order to generate the hash.
services.api.fusion.conf
This is the main file in which the connection to the Fusion API is configured. The host, port and protocol values are all given independently. The credentials given are that of a service account that has POST
rights to enable the sending of signals to Fusion.
logback.xml
In this file, we can add additional <logger>
tags to print out additional logging on specific classes in the web apps or local logs. The main logging comes from the root package twigkit
.
WAR
file:mvn clean package -Dtwigkit.profile=profileName
.mvn clean package
.WAR
file to ROOT.war
, if it is not already named this way.Use the Code Editor
app-studio/app/views/search.html
in version 4.0), using App Studio’s markup tags. Your search interface reloads automatically when you save your changes in the code editor.The code editor is also where you can publish your search interface to Fusion Server.⌘-S
/CTRL-S
) saves the file and reloads the page to display your updated interface:Add a Sidebar with Facets
Configure Autocomplete
solrconfig.xml
to use the Terms component; it is preconfigured.config/services/suggestions/terms.conf
.
Its default content is as follows:
source: platforms.fusion
to source: platforms.fusion.data
.
term-fields
as a comma-separated list of fields in your data from which to retrieve terms.
terms.fl
parameter.title
to describe the group of suggestions returned by Fusion.
This title can be used to group suggestions in the UI. If you are implementing only one group of suggestions, you can leave this blank or set it to something generic, like “Suggested phrases”.
app/views/partials/header.tpl.html
.
Upgrade Appkit in Existing Apps
package.json
file at the root of your project, update the appkit-ui
dependency to the latest Appkit version, for example:
pom.xml
file at the root of your project, update the value of the parent.version
property to the latest Appkit version, for example: