The Four Horsemen Tournament Ticker is a web application that provides dynamically populated stream views by leveraging data from smash.gg's GraphQL API.
After forking and cloning the repo, install dependencies with npm install
and open up a dev environment by running npm start
.
For first time or signed out users, the application will take you to a landing page where you will need to sign in with a google account as well as input an admin password. For this build of the application, the password is RedMonitorGrapefruit
.
Once you've successfully logged in, you'll be directed to the dashboard where you can navigate to the three currently available views (Recent Matches, Stream Queue and Top 8), create and delete events, and edit the theme of your views.
- Click the
Create new ticker
button on the dashboard and a modal will open and allow you to choose which event in a tournament to track.
-
Input the name of your tournament as it appears on the smash.gg page or from the url on its page. While copying the tournament name as it appears on the page works and will be formatted for the query to the api, the more fool proof approach is to use the slug in the url.
For example, in
https://smash.gg/tournament/frosty-faustings-xiv-2022/details
,
you would usefrosty-faustings-xiv-2022
. -
Click
Get Events
. ASelect Event
button will appear if the tournament name/slug provided is valid. From the dropdown, select the event you wish to track. -
Input any messages you would like to display in the footer section of the
Recent Matches
view. You can add as many as you'd like and they will cycle in order every 8 seconds. -
Click submit and a shiny new event card will be created and show up on the dashboard!
- click
Set As Active
on the event card and you are now tracking your event!
Now that you've created the event you'd like to track, click one of the three views in the upper middle of the dashboard. The views that you can choose to display are:
- The
Recent matches
view that shows the most recently completed matches in the event.
- The
Stream queue
view that displays which matches are on deck to be broadcasted on stream. You won't see matches in this view unless you add streams and create stations on smash.gg. More on that here.
- The
Top 8
view that displays the current state of the top 8 bracket of double elimination tournaments.
You can edit the theme of your views in a number of ways. Currently, you can change the background of each view and up to three logos that will appear in the header - two logos to the left of the header for things sponsors or organizations, and a centered logo for your event.
Click the Edit Theme
button to bring up a modal to customize your event.
From here, you'll be able upload images and select from backgrounds and logos you've uploaded via the various dropdown menus.