This is an official repository of StarCraft II Profile Twitch Extension.
For current status see the kanban board of the project.
Install and configure sc2profile-twitch-extension-api first.
To run a local server you need Node.js, preferably LTS version. Once installed, run the following commands:
$ git clone https://github.com/lukemsc/sc2profile-twitch-extension-frontend.git $ cd sc2profile-twitch-extension-frontend $ cp .env.sample .env
.env file with the following information:
REACT_APP_SC2PTE_API_URL- extension API URL (default is
REACT_APP_UPDATE_INTERVAL- how often the extension will poll for stat updates (in miliseconds) - for testing purposes it is reasonable to keep this value low (e.g.
5000for 5 seconds)
You can now complete the setup process and run the project locally:
$ npm install $ HTTPS=true npm start
The project hasn't been set up to work with Twitch Developer Rig yet.
.env.production file with environment variables to be used in production environment.
To create a ZIP package suitable for deployment on Twitch.tv follow the steps below:
$ npm run build $ cd build/ $ zip -r build.zip ./*
Upload the zipped package via Extension Dashboard on Twitch Developers Site.
See the project homepage for contact information.
Code is available under MIT license. See LICENSE for more information.
Graphic assets included in the repository are not subject to the license above.