Take these steps to get Hello World running in Local Mode in the Rig. This guide assumes you have either cloned the Rig from GitHub or downloaded the Zip file from Twitch.
- Install all dependencies. (It is possible to use brew to install all of these.)
- Add
127.0.0.1 localhost.rig.twitch.tv
to/etc/hosts
.- Open a terminal window and run
echo '127.0.0.1 localhost.rig.twitch.tv' | sudo tee -a /etc/hosts
- Provide your password if prompted.
- Open a terminal window and run
- Open a terminal window and run these commands.
cd path/to/developer-rig
yarn install
This takes about half a minute.yarn extension-init -d ../my-extension
This will clone the Hello World example from GitHub. You may replace my-extension with a different directory name here and in subsequent steps.yarn create-manifest -t panel -o ../panel.json
This creates a panel extension manifest file in the parent directory. For additional command line parameters, see Using Local Mode.yarn host -d ../my-extension/public -p 8080 -l
../my-extension/public is the public folder of the hello-world example extension created in step 3.iii above. NOTE: this terminal window command will not exit.
- Visit https://localhost.rig.twitch.tv:8080/panel.html. If necessary, allow the certificate. You will see
Hello, World!
in the browser window. - Open a terminal window and run these commands to generate the necessary SSL certificates for and run your Hello World backend.
cd path/to/my-extension
This is the directory created in step 3.iii above.npm install
npm run cert
node services/backend -l ../panel.json
../panel.json is the path to the file created in step 3.iv above. NOTE: this terminal window command will not exit.
- Visit https://localhost:8081. If necessary, allow the certificate. You will see some JSON describing a 404 response in the browser window.
- Open a terminal window and run these commands.
cd path/to/developer-rig
yarn start -l ../panel.json
../panel.json is the path to the file created in step 3.iv above. You will need to sign in with your Twitch credentials to use the rig in Local Mode. NOTE: this terminal window command will not exit.
- Visit https://localhost.rig.twitch.tv:3003. If necessary, allow the certificate. You will see
live
in the browser window. - Verify the rig is working.
- Click the
+
button. The Add a new view panel will appear. - Select the
Broadcaster
viewer type and clickSave
. The Broadcaster view will appear. - Click
Yes, I would
. Verify the color changes and there is output to match that request in the second terminal window. - Click the
+
button again. The Add a new view panel will appear. - Select the
Logged-Out Viewer
viewer type and clickSave
. The Logged-Out Viewer view will appear. - Click
Yes, I would
. Verify the color changes in both views and there is output to match that request in the second terminal window.
- Click the
When you are done using the Developer Rig, you may either close all opened terminal windows or press Ctrl-C
in all of them.