Web app for tracking your table soccer games. Die Tischkicker / Tischfußball App.
Create a new project: https://console.firebase.google.com/. You need following firebase products:
- Database: Enable the Firebase database and create following entries in the data tab:
{
data: {
players: [],
games: []
}
}
- You also need some database rules:
{
"rules": {
"data": {
".read": true,
"games": {
".write": true
},
"players": {
".write": true
}
}
}
}
-
Authentication: Enable the method
Google
. -
Enable Hosting in your firebase console.
git clone [email protected]:julienthoma/table-soccer.git
npm install
Create a .firebaserc
file in your project root.
{
"projects": {
"stage": "tablesoccer-dev"
}
}
Create configs files for development and live environment and fill them with your firebase credentials. You can use the same config for development and production, but I would create an second firebase project for production.
cp config.dist.json config.json
cp config.dist.json config-dev.json
{
"slackUrl": "Url for Slack webhook",
"firebaseConfig": {
"apiKey": "",
"authDomain": "",
"databaseURL": "",
"projectId": ""
},
"dbUrl": "firebase dbUrl e.g. <databaseURL>/data.json",
"slackBotUrl": "Url for slack bot"
}
To start the webpack dev server:
npm run dev
npm run prod
firebase deploy
Getting started: https://api.slack.com/incoming-webhooks
.
You will get game results posted in your favorite slack channel.
For creating games from Slack you need to setup another project: https://github.com/ioiooi/kickerbot
.
- Google Login
- 2on2 Mode
- Time tracking
- Tracking goals from all positions
- Own goals
- Undo feature
- Timeline of games
- Tracking of win streaks
- MMR based on chess ELO-Rating
- MMR development
- metrics for each position
- Best player for each metric
- Compare with other players
- Slack integration via web hook
- Post your games live in any channel
- React - https://reactjs.org/
- Redux - https://redux.js.org/
- Material UI - https://material-ui.com/
- ChartJs - https://www.chartjs.org/
- Webpack - https://webpack.js.org/
- Firebase - https://firebase.google.com/
Feel free to report bugs or request new features on Github.