Skip to content

thienlhh/coffex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coffex

Coffex is A football CLI written in Elixir. Provides informations about popular national championships in the world.

Usage

  • Make sure erlang was installed
  • On Windows machines add escript before coffex 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

Development

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 the secret.exs file and import it in config.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

About

Coffex is A football CLI written in Elixir

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages