This package contains a simple REST
server that implements the FDC3 App directory and is compatible with Glue42 Desktop. This basic implementation just logs the user for which Glue42 Desktop requests the data (either from the impersonated_user
or user
headers) and returns the same set of data for all requests.
To run this REST
server, you need to install npm
and Node.js v10.0.0
(would probably run with a lower version as well).
To start the REST
server, run the following commands:
npm i // to install the dependencies
npm run start // to run the server
By default, the server will listen on port 3000
. The environment variable APPD_SERVER_PORT
can be used to override this setting.
The server comes with a list of apps. Their configurations are stored in the configurations
folder and can be modified. Add your app configuration to the configurations
folder. These files will be read and converted on each request.
If your Glue42 Desktop copy is not configured to retrieve its configuration from a remote source, you will need to edit the system.json
file (located in the %LOCALAPPDATA%\Tick42\GlueDesktop\config
directory).
- Add
rest-app-config-settings
underconfiguration
:
"gw": {
...
"configuration":
{
...
"rest-app-config-settings": {
"enabled": true,
"application-settings": {
"applications-url": "http://localhost:3000/appd/v1/apps/search",
"client": "negotiate",
"impersonation-enabled": true
},
"acs-identity": {
"authentication": "desktop"
}
}
}
}
- Add a new entry to the
appStores
top-level array:
{
...
"appStores": [
{
"type": "cm",
"details": {
"url": "--placeholder--"
}
}
...
]
}