Skip to content

dalbert94/football-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Football API wrapper ⚽

This program is used to make calls to the Hackerrank football API. The demo will prompt the user to enter a year and write the total number of draws that year to an output file. The output file is defined as an environment variable. The program will also show the user how the total number was tallied using standard output.

*How to Demo this project:*

The easy way (You must have docker installed)

Build and package Docker container. You may need help from sudo.

docker build -t football-demo .

Set the output file and run app in Docker container.

Note: output.txt is only found within the docker container. The results also appear in StdOut

docker run -e "OUTPUT_FILE=output.txt" --rm -it football-demo:latest

*The easier way (You must have Java installed)*

Set the output file and run the executable jar with built-in dependencies

OUTPUT_FILE=output.txt java -jar target/football-api-wrapper-jar-with-dependencies.jar

You can also rebuild the fat jar yourself before running the previous command

mvn clean package

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors