Running a DS Sample
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:
Before carrying out the following steps, install the required prerequisites.
Navigate to the
<DS_HOME>/bin
directory.cd <DS_HOME>/bin
Run the
wso2ds-samples
script based on your operating system (OS). When thewso2ds-samples
script runs, it copies the respective sample files into the necessary directories and executes thewso2server.sh/wso2server.bat
script based on your OS.OS Command Format Example 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 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