The Experience Management Service (XMS) provides interface facilitating modification and augmentation of records by learning experience owners and managers. This component is split into 2 parts; XMS Backend, which supplies APIs necessary to edit the metadata, and XMS UI, which provides a UI to simplify the process.
Clone the Github repository:
https://github.com/OpenLXP/openlxp-xms.git
Open terminal at the root directory of the project.
example: ~/PycharmProjects/openlxp-xms
Run command to install all the requirements from requirements.txt
docker-compose build.
Once the installation and build are done, run the below command to start the server.
docker-compose up
Once the server is up, go to the admin page:
http://localhost:8000/admin (replace localhost with server IP)
On the Admin page, log in with the admin credentials
Add xms configuration
: Configure Experience Management Service (XMS):
Target xis metadata api
: Metadata API Endpoint to connect to on an XIS instance.
XIS catalogs api
: Catalogs API Endpoint to connect to on an XIS instance.
Add Saml configuration
: Configure Security Assertion Markup Language (SAML):
Name
: The name that will be used to identify the IdP in the URL.
Entity id
: The unique name provided by the IdP.
Url
: The connection URL to connect to the IdP at.
Cert
: The public cert used to connect to the IdP.
Attribute mapping
: The JSON formatted mapping to convert attributes provided by the IdP, to a User in this system.
Add sender email configuration
: Configure the sender email address from which conformance alerts are sent.
Add receiver email configuration
:
Add an email list to send conformance alerts. When the email gets added, an email verification email will get sent out. In addition, conformance alerts will get sent to only verified email IDs.
Clone the project
git clone git@github.com:OpenLXP/openlxp-xms-ui.git
Install yarn
This project uses yarn as the package manager. If you already have yarn installed or are using a different package manager feel free to skip this step.
Start by installing yarn globally
npm install -g yarn
Verify yarn was installed
yarn -version
Install project dependencies
Installs all requirements for development
yarn set version 1.22.1
yarn install package.json
Run the project
Run the project in development mode
yarn start
Run the project in production mode
Build the docker image
docker build -t openlxp-xds-ui .
Run the docker image
docker run -p 3000:3000 openlxp-xds-ui
This project makes use of globally available environment variables. Below are the required environment variables required for this project.
REACT_APP_XIS_CATALOGS_API
This is the root API endpoint used by the application to access XIS catalogs.
http://<YOUR_BACKEND_ENDPOINT>/api/catalogs/
REACT_APP_XIS_COMPOSITELEDGER_API
This is the endpoint for accessing the XIS compositeledger.
http://<YOUR_BACKEND_ENDPOINT>/es-api/
REACT_APP_XIS_EXPERIENCES_API
This is the root API endpoint used by the application to access XIS experiences.
http://<YOUR_BACKEND_ENDPOINT>/api/experiences/
.env Template
REACT_APP_XIS_CATALOGS_API=<YOUR_BACKEND_ENDPOINT>/api/catalogs/
REACT_APP_XIS_COMPOSITELEDGER_API=<YOUR_BACKEND_ENDPOINT>/api/metadata/
REACT_APP_XIS_EXPERIENCES_API=<YOUR_BACKEND_ENDPOINT>/api/experiences/