Coffex is A football CLI written in Elixir. Provides informations about popular national championships in the world.
- Make sure erlang was installed
- On Windows machines add
escript
beforecoffex
command
usage: coffex [league] [option]
league:
premier: Premier League (England)
laliga: La Liga (Spain)
serieA: Serie A (Itali)
bundesliga: Bundesliga 1 (German)
option:
next: Default option to show next 4 matches
top: Show top 4 teams of current season
top-scorers: Show top 4 scorers of current season
The steps to run coffex
in local machines
- Installs Elixir and erlang
- Gets
api token
from football-data.org - Clones the repository
> git clone https://github.com/thienlhh/coffex.git
- Configs your
api token
in thesecret.exs
file and import it inconfig.exs
file, creating one if you don't have it.
# Config the football-data.org api token here
config :coffex, api_token: "<your-api-token>"
- Runs the application in
iex
> cd coffex
> mix deps.get
> iex -S mix
- Builds executable file
> mix deps.get
> mix escript.build