1. If not already done, create a rC3 API token by clicking `Request a new token`. **Save the API token for later use.*
1. Give your new OAuth2 client a name.
1. Set its type to `Public`.
1. Set the grant type to `Auhtoziation code`.
1. Click `New application` to create the OAuth2 client.
### Generate Counter Tokens
![Create Layers in Tiled](./howto/04-create-tiled-layer.png)
1. For each unique place on your WorkAdventure map, generate a unique token, e.g. using `uuidgen`.
1. Create a layer in Tiled for each unique place and add at least the `openWebsite` layer property with a value of e.g. `https://<yourdomain>/counter/<my-counter-name>/<the-unique-token>`.
### Deploy
Set up counterbadge.py as a service on your system, e.g. as a systemd
service (see `counterbadge.service` as an example). Set up a
TLS-terminating reverse proxy.
### Configure
See `counterbadge.example.json` as a config example. Put in the API, OAuth2 and Badge credentials you created earlier.