2. Setup

Begin by opening the tutorial folder in your code editor of choice. We will begin by installing the prerequisite packages for our application. Open a new terminal window, navigate to your tutorial directory, then run the following command to install the packages:

npm install

Once the packages have been installed open up the paths.js file. This file contains three paths that you will need to set to be relevant to your system. It is recommended to use absolute paths in all cases.

Finally, copy the following HOOPS Communicator JavaScript files from <PackageRoot>/web_viewer/src/js to <PackageRoot>/tutorials/server_tutorial/public/js.

The ts3d_sc_server executable will launch a Stream Cache Server that the server we are building will monitor.