Bonfire is a web based chat client for twitch chats. It is still under heavy development and not recommended for general use yet.
You can either use the website version under chats.c0ldplasma.de or download the deskop app based on electron under releases.
These instructions will get you a copy of Bonfire up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
First install Node.js, then run the following commands in console:
git clone https://github.com/c0ldplasma/bonfire
cd bonfire
npm install
You can use any IDE like Visual Studio Code or WebStorm for coding. The following commands can be used to continuously build the src/*.js files to the public/bundle.js file while coding. Recommended: npm run dev
.
The public/index.html
file contains a <script src='bundle.js'>
tag, which means we need to create public/bundle.js
. The rollup.config.js
file tells Rollup how to create this bundle, starting with src/main.js
and including all its dependencies, including date-fns.
npm run build
builds the application to public/bundle.js
, along with a sourcemap file for debugging.
npm start
launches a server, using serve. Navigate to localhost:5000.
npm run watch
will continually rebuild the application as your source files change.
npm run dev
will run npm start
and npm run watch
in parallel.
To host it yourself on a server you need to create your own ClientID through the Twitch development website ( https://dev.twitch.tv/console/apps ) and enter the URL where the website is deployed. After that replace ClientID and the URL in src/app/TwitchConstants.js
After that build it with npm run build
Then copy the public folder content to your webroot and check if your php is configured correctly so that the php/recentMessages.php is working. It is used for loading the recent chat messages from the inofficial twitch api which is not directly accessible from client side because of cross domain policies.
- Download a copy of Electron for your platform.
- Extract it.
- Put the desktop_app/app folder as a whole in the electron/resources folder.
- In the electron/resources/app/index.html you can change the URL to your own instance of Bonfire at line 92.
- rollup.js - A module bundler for JavaScript.
- Electron - Build cross platform desktop apps with JavaScript, HTML, and CSS.
This project is licensed under the MIT License - see the LICENSE file for details.
- Fire icon by SmartIcons licensed under the Creative Commons (Attribution 2.5 Generic) is used as the Bonfire app logo with the following modifications made: - Changed the color to purple.
- The Readme Template by PurpleBooth is used as Template for this Readme.md.