Leaderboard created for the T3M, managed by the ENSIBS Vannetais BDE team.
Use the package manager Node.js to install json-server.
git clone https://github.com/mysther78/leaderboard-t3m.git
cd leaderboard-t3m
npm install json-server --save-dev
echo your_secret_token > token
node server.js
Go to http://localhost:3000/
Go to http://localhost:3000/admin.html
POST https://leader.entropy.land/equipes/6
--header "Content-Type: application/json"
--header "Authorization: Api Token {token}"
--data {
"name": "Team name",
"maison": "rah",
"description": "Équipe",
"point": 0,
"id": 21
}
PATCH https://localhost:3000/equipes/{id}
--header "Content-Type: application/json"
--header "Authorization: Api Token {token}"
--data {
"name": "Team name",
"maison": "rah",
"description": "Équipe",
"point": 0
}
DELETE https://localhost:3000/equipes/{id}
--header "Content-Type: application/json"
--header "Authorization: Api Token {token}"
Add new image as {maison_name}.png
in public/src/
docker build -t leaderboard-t3m .
Pull requests are welcome.