Skip to content

Commit

Permalink
Post world cup edition (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricblondeau committed Dec 20, 2022
1 parent 0b27bcf commit 630685f
Show file tree
Hide file tree
Showing 16 changed files with 14,576 additions and 33,145 deletions.
31 changes: 0 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,37 +56,6 @@ world-cup-2022-cli-dashboard

Pre-compiled binaries are available on the [releases page](https://github.com/cedricblondeau/world-cup-2022-cli-dashboard/releases).

## Data

Data can be sourced from:
1. [worldcupjson.net](https://worldcupjson.net/)
2. [football-data.org](https://www.football-data.org/)

By default, the dashboard uses `worldcupjson.net` - which is an awesome free and open source project but with limited availability and accuracy guarantees.

To use `football-data.org` instead, you'll need to [register](https://www.football-data.org/client/register) and get an API token (it's easy and free). Then, start the dashboard with an env variable:
```bash
FOOTBALLDATA_API_TOKEN=my_fake_token world-cup-2022-cli-dashboard
```

Or with Docker:
```bash
docker run -ti -e TZ=America/Toronto -e FOOTBALLDATA_API_TOKEN=my_fake_token world-cup-2022-cli-dashboard
```

Note that the _free_ `football-data.org` plan comes with less features than `worldcupjson.net`.

| | worldcupjson.net | football-data.org |
|--------------|:----------------:|:-----------------:|
| Live scores |||
| Schedule |||
| Standings |||
| Bracket |||
| Lineups |||
| Goal scorers |||

The data source gets polled every minute.

## UI

UI is powered by [bubbletea](https://github.com/charmbracelet/bubbletea) and [lipgloss](https://github.com/charmbracelet/lipgloss).
Expand Down
154 changes: 0 additions & 154 deletions data/footballdata/client.go

This file was deleted.

24 changes: 0 additions & 24 deletions data/footballdata/json.go

This file was deleted.

44 changes: 0 additions & 44 deletions data/footballdata/mock.go

This file was deleted.

Loading

0 comments on commit 630685f

Please sign in to comment.