#
Development Workflow
Building custom front-ends for Curiosity involves writing C# code that is transpiled to JavaScript.
#
1. Prerequisites
Install the h5 compiler and the Curiosity CLI as global dotnet tools:
dotnet tool update --global h5-compiler
dotnet tool update --global Curiosity.CLI
#
2. Download Template
Go to Management > Interfaces and select Download template. This provides a pre-configured project with all necessary dependencies.
#
3. Debugging Locally
Use the serve command to host your front-end locally while connecting to a remote workspace:
curiosity-cli serve -s http://localhost:8080 -p bin/Debug/netstandard2.0/h5
Remember to set MSK_CORS on your workspace to allow access from your local development server.
#
4. Deploying
Once ready, zip the contents of the h5 output folder and upload it via the Management interface or use the CLI:
curiosity-cli upload-front-end -s http://localhost:8080/ -t TOKEN -p path/to/h5