Returns active streamers on Anrop.
Code is written in Go and uses Go modules for dependency management.
Use go build
to download all dependencies and compile the sources.
Start the API with the Anrop-Streams
binary.
Server will be available at $PORT
.
Environment variables can be specified in .env
file and will be autoloaded.
Key | Required | Description |
---|---|---|
AVATAR_BASE_URL | No | Prefix to all avatar urls |
DATABASE_URL | Yes | MySQL url to your Anrop database |
TWITCH_CLIENT_ID | Yes | Twitch API Client ID |
PORT | No | Port that HTTP Server is bound to. 8080 by default |