You create Caplin Trader 5 applications under a development workspace. You can create as many workspaces as you want, and create as many applications under a single workspace as you want.
Creating a new development workspace
To create a new Caplin Trader 5 development workspace, follow the steps below:
Create a directory to hold the workspace:
mkdir -p ~/dev/ct-workspace
Navigate to the new
Initialise the workspace:
After initialisation, your new workspace has the following directory structure:
ct-workspace/ ├── apps/ ├── packages/ ├── packages-caplin/ └── README.md
The root directory for applications developed within this workspace. Each application has its own subdirectory under the
Local packages common to all applications in the workspace. To create your own packages, see Creating a new local package.
Caplin Trader 5 packages. The Caplin Trader 5 packages are distributed in a ZIP file downloadable from the Caplin Downloads site. To install the packages, see step 4 below.
packages-caplindirectories in the Caplin Trader 5 ZIP file to the root directory of your development workspace.
After extracting the ZIP file, your development workspace has the following directory structure:
ct-workspace/ ├── apps/ │ └── demo/ ├── packages/ ├── packages-caplin/ │ ├── br/ │ ├── br-component/ │ ├── br-core/ │ ├── br-formatting/ ⋮ ⋮ │ ├── sljs/ │ ├── sljs-alerts/ │ ├── topiarist/ │ └── velocity/ └── README.md
Click on the terminal recording below to watch the creation of an example CT5 workspace: