Create a new workflow by clicking Create Workflow > Create v2 Workflow in the SampleHC dashboard.You will be prompted to enter a name for your workflow.
Enter a name and click Create.
The workflow slug must be unique across all workflows in your organization. It will also be the name of the git repository.
This will create a git repository initialized with the SampleHC workflow template.
Prerequisites: You will need to have Node.js and Python installed on your machine. The versions used at the time of writing is Node.js 20.x, and Python 3.12.x, but newer versions may work as well.
At the root of your workflow, run the following commands to install dependencies
Copy
# Install node.js dependenciesnpm install# Sets up a python virtual environment and installs python dependenciesnpm run setup-python-dev
2. Set up ngrok to forward requests to your dev server
For the SampleHC application to access your dev server, you will need to set up ngrok to forward requests to your dev server.
Follow the instructions on the ngrok website to install ngrok.
Run the following command to find the config location for your ngrok installation.
Copy
ngrok config check
Copy the file here to the location of your ngrok config file. Then replace ankit with your handle (the part before the @ in your SampleHC email).
Start ngrok by running the following command. This should open two tunnels for ports 8000 and 5173, which host the Python and React (Vite) dev servers respectively.