WSO2 Dashboard Server (DS) is shipped with a set of samples, which helps you get a better understanding of the product. Separate shell and batch scripts are provided, so that you can easily deploy the sample.
Follow the instructions below to run a sample in WSO2 DS sample:
Note |
---|
Before carrying out the following steps, install the required prerequisites. |
Navigate to the
<DS_HOME>/bin
directory.Code Block cd <DS_HOME>/bin
Run the
wso2ds-samples
script based on your operating system (OS). When thewso2ds-samples
script is executedruns, it copies the respective sample files into the necessary directories and executes thewso2server.sh/wso2server.bat
script based on the your OS being used.OSScript Command Format FormatExample Linux/Mac Option 1 ./wso2ds-samples.sh -sn <SAMPLE_NUMBER>
./wso2ds-samples.sh -sn 0
Option 2 sh wso2ds-samples.sh -sn <SAMPLE_NUMBER>
sh wso2ds-samples.sh -sn 0
Windows Option 1 ./wso2ds-samples.bat -sn <SAMPLE_NUMBER>
./wso2ds-samples.bat -sn 0
Option 2 sh wso2ds-samples.bat -sn <SAMPLE_NUMBER>
sh wso2ds-samples.bat -sn 0
The
<SAMPLE_NUMBER>
refers to the integer used to name the sample folder. See DS sample directory the following to identify the sample numbers that correspond to the respective DS samples.Example:
localtabgroup
As the name of the folder that contains the drill down dashboard sample iss0
, use one of the following commands to run the drill down sample:Localtab active true title Linux/Mac Code Block wso2ds-samples.sh -sn 0
Localtab title Windows Code Block wso2ds-samples.bat -sn 0
DS sample directory
Sample Name Sample Number Drill down dashboard 0 Inter-gadget communication support 1
...
webSocket support 2