- Node (LTS)
- Command Prompt / Terminal
- You know bracketcounter works, how to change contestants, etc
- If not, follow through the README &
config.example.tomlclosely: https://github.com/figgyc/bracketcounter
- If not, follow through the README &
This is only for running the site on your local computer e.g. not online
- Set
livemodetotruein the config file. - Download bracketcounter-web, and unzip
- Open your Terminal to the folder
bracketcounter-web - Enter these commands
npm i
npm i -g live-server
- If your unable to do
npm i -g live-server, trynpm i live-server
- Go to client.ts inside the folder with a text editor of choice and replace this line:
socket = new WebSocket('ws' + (window.location.protocol == "https:" ? "s" : "") + '://' + window.location.hostname + '/socket');to this:
socket = new WebSocket("ws://127.0.0.1:9764")- Go back to your terminal and enter these commands:
npm run build
live-server
- If your unable to do
live-server, trynpx live-server
- A browser tab should pop up with a directory screen. If not, go to http://127.0.0.1:8080/ (this is a local website, only your computer can view it!)
- Click on
dist/. This will open the website! - Start bracketcounter and wait until it finishes collecting comments. After that, you should be able to see the votes on the site!!