A NodeCG bundle. Provides dashboard panels for Inkling Performance Labs tournaments.
Visit the documentation to read how to use and develop overlays for ipl-overlay-controls.
-
Install Node.js - Using the LTS version (16.x as of writing) is recommended.
-
Install Git
-
Install nodecg-cli:
npm i -g nodecg-cli
-
Create a directory for NodeCG:
mkdir nodecg && cd nodecg
-
Install NodeCG:
nodecg setup
-
Install ipl-overlay-controls:
nodecg install inkfarer/ipl-overlay-controls
.
-
To specify a version, append
#<tag>
after the repository name.Example:
nodecg install inkfarer/ipl-overlay-controls#1.3.2
Find a list of the repository's releases here. You can see the tag name next to the commit hash, located on the left-hand side of the page on desktop.
- Configure the bundle at
<nodecg>/cfg/ipl-overlay-controls.json
. It should contain the following info:
{
"lastfm": {
"apiKey": "Your last.fm API key",
"secret": "Your last.fm API secret"
},
"smashgg": {
"apiKey": "Your smash.gg API key"
},
"radia": {
"url": "https://radia-production",
"socketUrl": "wss://radia-websocket",
"authentication": "Your Authentication Key"
},
"sendouInk": {
"apiKey": "Your sendou.ink API key"
}
}
The "lastfm", "smashgg", "radia", "sendouInk" sections may be omitted, though functionality will be missing if that is done.
-
In the NodeCG root, start NodeCG:
nodecg start
-
Access the dashboard at
http://localhost:9090/
in your browser.
For development, a number of npm scripts are provided:
build
- Creates a production build of the bundle.clean
- Deletes generated build files and npm cache.cleanbuild
- Deletes generated files and runs a production build.devbuild
- Creates a development build of the bundle.start
- Starts NodeCG.watch
- Runs a development build when code changes are detected.schema-types
- Generates TS type definitions for replicant schemas (Defined in the/schemas
directory)lint
- Runs ESLint to check for code issues.fix
- Automatically fixes some ESLint errorstest
- Runs unit teststest:update
- Runs unit tests while updating snapshotstest:ci
- Runs unit tests and creates a result file for Continuous Integration systems to parse
This repository uses GitHub actions to automatically verify with ESLint and create builds from the master branch.
New releases should be created off the build
branch, which contains the built files.
To help debug this bundle in JetBrains IDEs, create a Node.js build configuration with the following options:
- Working directory: [nodecg]\bundles\ipl-overlay-controls
- JavaScript file: [nodecg]\index.js
To create a debuggable development build, run npm run watch
or npm run devbuild
in the project root.