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 executed runs, it copies the respective sample files into the necessary places directories and calls 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.Example:
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:Localtabgroup Localtab active true title Linux/Mac Code Block wso2ds-samples.sh -sn 0
Localtab title Mac Code Block wso2ds-samples.bat -sn 0
See the following to identify the sample numbers that correspond to the respective DS samples.
Sample Name Sample Number Drill down dashboard 0 Inter-gadget communication support 1 webSocket support 2