The AAS Web UI is a Vue.js Webapplication to visualize and manage Asset Administration Shells, Submodels and Concept Descriptions.
The documentation of the BaSyx AAS Web UI can be found in the BaSyx Wiki.
The AAS Web UI is now only compatible with the components of BaSyx V2 and the Asset Administration Shell V3.
If you still wish to use BaSyx V1, please use the following release of the UI:
docker pull eclipsebasyx/aas-gui:v230703
As of now, not all new SubmodelElements of the AAS V3 are supported. Additional elements will be added in future updates. The currently supported SubmodelElements are:
- SubmodelElementCollection
- SubmodelElementList
- Property
- MultiLanguageProperty
- File
- Blob
- Operation
- ReferenceElement
- Range
- Entity
- RelationshipElement
- AnnotatedRelationshipElement
See examples in the basyx-java-server-sdk Repository.
The BaSyx-UI includes a Feature to develop your own Plugins. They can be used to display and interact with a Submodel (and/or SubmodelElements).
Plugins will be displayed in the Visualization
-Part of the UI. In order for Plugins to be shown, a Submodel(Element) has to have a SemanticID which matches with the configured SemanticID of the desired Plugin.
To include your own Plugin, you have to create a Vue.js Component and add it to the UserPlugins
-Folder in the aas-web-ui/src
-Directory. The Plugin will then be automatically loaded and displayed in the UI.
If you plan on including your own plugins, keep in mind that you have to build the Docker Image yourself!
A Demo-Plugin can be found here:
After you cloned the project to your local machine, it is recommendet to install ESLint
globally:
npm install --global eslint
and the ESLint
and Prettier ESLint
extensions in VS Code.
Before starting a dev server, run the
yarn
command inside the aas-web-ui
directory. For more details for your specific OS, follow the instructions in the next subsections.
- Install Node and NPM (Node installation Tutorial for Mac)
- Install yarn
npm install --global yarn
- Clone Repository:
git clone https://github.com/eclipse-basyx/basyx-aas-web-ui.git
- Bootstrap the application:
. bootstrap.sh
- On initial installation answer first question with y (Yes) otherwise n (No)
- Answer second question with n (No)
- Install Node and NPM (Node installation Tutorial for Linux)
- Install yarn
npm install --global yarn
- Clone Repository:
git clone https://github.com/eclipse-basyx/basyx-aas-web-ui.git
- Bootstrap the application:
. bootstrap.sh
- On initial installation answer first question with y (Yes) otherwise n (No)
- Answer second question with n (No)
- Install WSL 2 (WSL installation Tutorial)
- Open IDE (e.g. VSCode: WSL in VSCode)
- Install Node and NPM (Node installation Tutorial for Linux)
- Install yarn
npm install --global yarn
- Clone Repository:
git clone https://github.com/eclipse-basyx/basyx-aas-web-ui.git
- Bootstrap the application:
. bootstrap.sh
- On initial installation answer first question with y (Yes) otherwise n (No)
- Answer second question with n (No)
The latest Off-the-Shelf version is available on DockerHub.
- Build the image by executing
docker build aas-web-ui -t eclipsebasyx/aas-ui
- Start a container by executing
docker run -p 3000:3000 eclipsebasyx/aas-ui
- You can also predefine the AAS Discovery Service Path, AAS- and Submodel Registry Path, AAS-, Submodel- and Concept Description Repository Path, the Apllications primary color and the Base Path by adding the following arguments to the run command:
-e AAS_DISCOVERY_PATH=<aas_discovery_path>
-e AAS_REGISTRY_PATH=<aas_registry_path>
-e SUBMODEL_REGISTRY_PATH=<submodel_registry_path>
-e AAS_REPO_PATH: <aas_repo_path>
-e SUBMODEL_REPO_PATH: <submodel_repo_path>
-e CD_REPO_PATH: <concept_description_repo_path>
-e PRIMARY_COLOR=<primary_color>
-e LOGO_PATH=<logo_path>
-e BASE_PATH=<base_path>
- If you want to use a custom logo, you can mount a folder containing the logo and the favicon.ico to the container by adding the following argument to the run command:
-v <local_path_to_logo_folder>:/usr/src/app/dist/Logo
- The GUI is now available at:
http://localhost:3000/<base_path>
If you want to use the AAS Web UI as part of a Docker Compose project you can use the following example in your docker-compose.yml
aas-web-gui:
image: eclipsebasyx/aas-gui:<tag>
container_name: aas-web-gui
ports:
- "3000:3000"
environment:
AAS_DISCOVERY_PATH: "<aas_discovery_path>"
AAS_REGISTRY_PATH: "<aas_registry_path>"
SUBMODEL_REGISTRY_PATH: "<submodel_registry_path>"
AAS_REPO_PATH: "aas_repo_path"
SUBMODEL_REPO_PATH: "submodel_repo_path"
CD_REPO_PATH: "concept_description_repo_path"
PRIMARY_COLOR: "<primary_color>"
LOGO_PATH: "<logo_path>"
BASE_PATH: "<base_path>"
volumes:
- <local_path_to_logo_folder>:/usr/src/app/dist/Logo
To be able to access the BaSyx AAS data from the Web UI, you need to add a wildcard to cross-origin resource sharing on the Registry- and AAS-, Submodel- and Concept Description Repository (AAS Environment). An example on how to do this is shown in the examples folder in the basyx-java-server-sdk Repository.
The basyx-java-server-sdk Repository includes an example Docker Compose project which shows how to use the UI with nginx and configure a base path so that the UI can be hosted under
http(s)://your-url/base-path
- Open terminal/shell on the root directory of the project
- Bootstrap the project
. bootstrap.sh
- On initial installation answer first question with y (Yes) otherwise n (No)
- Answer second question with n (No)
- Start coding 😉
⚠️ does not support the plugin mechanism⚠️
- Open terminal/shell on the root directory of the project
- Go to the aas-web-ui folder
cd aas-web-ui
- Build the project
yarn install yarn build
- Source Files are created here:
aas-web-ui/dist
As a prerequesite you need to sign the Eclipse Contributor Agreement.
After you signed the ECA you can create Pull Requests to this Repository.
All PRs will be checked for compliance and functionality!