- It is a web application that utilizes the Brawl Stars API to track and monitor player statistics in the popular mobile game.
You can view the daily Brawl Stars events, see a list of all brawlers and most importantly watch your stats and the stats of other players.
- There is also an opportunity to register, so you will get new features and additional information about the statistics of the players.
The third-party BrawlAPI and the official Brawl Stars API, which you must connect to via a generated token.
- I use the BrawlAPI as the main one.
- Since it has advanced functions.
- On the web page it is responsible for: events, brawlers and most importantly icons or images that are not in the official API.
- The official Brawl Stars API is only responsible for player statistics.
- You will not have access to this API because the token is associated with an IP address.
- If you want to use it, you need to create an account.
HTML, CSS, JS, (BrawlAPI)
PHP, MySQL, (Brawl Stars API)
Need to install editor: e.g Visual Studio Code.
- Download from github front-end branch.
- Extract and then open in the editor.
Need to install editor: e.g Visual Studio Code, XAMPP and MySQL.
-
Download release or back-end branch from github.
-
If you want access to player statistics, you must create an account on the Brawl Stars API.
- Generate token and past inside
/assets/php/extensions/api-request.php
.
- Generate token and past inside
-
Otherwise remove this check condition inside
/assets/php/extensions/user-manager.php
.- Function name
trySignup(...);
.
- Function name
if (!ApiRequest::isPlayerExisting($player_tag)) {
$_SESSION["AUTHENTICATION_STATUS"] = "Failed to get the player's data. Check that his tag is written correctly.";
header("Location: /");
return;
}
-
Open XAMPP configuration and set branch directory.
- Or place to default folder.
-
Open MySQL and paste the following query selectors:
create database brawl_tracker;
use brawl_tracker;
create table `profile` (
id int primary key auto_increment,
email varchar(45) not null unique,
`password` varchar(64) not null,
tag varchar(9) not null,
constraint check_email_format check (email like '%@%'),
constraint check_tag_format check (tag regexp '^[A-Za-z0-9]+$')
);