This is my customized twitch chat relay. This is a frontend for the backend project.
Like the backend, this is also edited using a .env
. This is made using the node adapter, check out their documentation for project config. The most important one is PORT
, which will change where the app is hosted on.
I added the following options to configure this:
env var | explanation | example |
---|---|---|
PUBLIC_BASE | the base location for the backend. Do not include protocols like http or https. Do not include trailing slashes. | shadygoat.eu ,shadygoat.eu/api |
PUBLIC_SECURE | If this is set to false , the API will use the ws interface, not wss . This is not recommended. |
true , asdkl (this is unknown, will default to true ), false |
Please note, you must rebuild the app after changes in configuration!
To run this, first clone the repository (git clone
or download the source code). Then:
- Navigate to the folder that this code is in
- Run
npm ci -D
- Edit your
.env
file - Run
npm run build
(this will create a directory called 'build') - Run
npm run prod
(this will launch the app)