The following documentation describes the installation and usage instructions.
It is recommended that the user installs Xubuntu 18.04 to run this code.
The user can clone the repository by issuing the following command:
$ git clone https://github.com/jfleach/weather_application.git
Follow the instructions at https://docs.docker.com/install/linux/docker-ce/ubuntu to install the Docker Community Edition and also install Docker Compose.
$ sudo apt-get install docker-compose
It may be necessary to add the user to the docker group. After issuing the following command, logout or cycle the shell.
$ usermod -aG docker $(whoami)
Bring up the the Docker container and application by issuing the following command:
$ docker-compose up --build
Run the unit tests by issuing the following command:
$ python3 test_datetime_weather.py
Open Weather Map sometimes returns incorrect weather descriptions.
View the Swagger documentation at: http://localhost/swagger
If you want to use the country code, use "80301,us" for the ZIP code and country code if executing via Swagger. Use "Default", "imperial", or "metric" for the units if executing via Swagger.