This is the source code for the AOTC broadcast package. To see it in action, watch one of the main broadcasts, and read this blog post for more on how it works.
- Git
- Node.js (16.0.0+)
- Yarn (1.x)
- Text Editor with EditorConfig & Prettier support. (We recommend Visual Studio Code)
You will need to provide the following environment variables for local development. You will need service account credentials from Google to use the Google Spreadsheet API, you can follow this guide to create your own.
GOOGLE_SHEETS_ID= # the spreadsheet ID of the dashboard spreadsheet
GOOGLE_SERVICE_ACCOUNT_EMAIL= # the Service Account email given to you
GOOGLE_PRIVATE_KEY= # the private key received from your Service Account auth details
Create a copy of the .env.example
file and name it .env
. There, you can put the credentials you receive.
First, you should clone the repository.
$ git clone https://github.com/Trackmania-Asia-OCE/aotc-broadcast-package.git
After this repository has been cloned, cd
into the repository:
$ cd aotc-broadcast-package
Install the project's dependencies. Note that we use Yarn, not npm:
$ yarn
To start developing locally, you have to run the development server.
$ yarn dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000