Skip to content

aaryswastaken/brawlstats-prem

Repository files navigation

brawlstats-prem

This project is not affiliated whatsoever with brawlstats developed by overwolf neither with brawlstars developed by supercell although this program uses brawlstar's API

How to run

You will need to create environment files corresponding to your installation :

.env

API_TOKEN=<your api token>
DB_USER=<username you set in mongodb.env>
DB_PWD=<password you set in mongodb.env>
DB_IP=localhost
DB_PORT=27017
PLAYER_TAG=#<your brawlstars tag>

mongodb.env

MONGO_INITDB_ROOT_USERNAME=<your username (usually root)>
MONGO_INITDB_ROOT_PASSWORD=<database root password>
MONGO_INITDB_DATABASE=stats

web.env

COOKIE_SECRET=<your cookie passphrase>

Note that the parameter MONGO_INITDB_DATABASE is the one used in main.js in the variable dbname

The DB_IP parameter is overwritten by docker.env when used in the docker, as set in docker-compose.yaml

Then you just have to run docker-compose up -d to start the containers.

Additional information

The mongo database is actually exposed for development purpose, to fix it, deleting the mongo_net in the docker-compose.yaml should work

To get an api key, visit this page (you'll need to register or login) developer.brawlstars.com

About

Docker-based brawlstars api logger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published