DreamPearl / ForWeather

Application to display the weather report

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ForWeather Python application

Application to display weather report

Usage 1 [Git clone]:

  • Clone the repository.

    • git clone https://github.com/DreamPearl/ForWeather.git

    • cd ForWeather

  • Build docker image.

    • docker build --tag forweather:1.0 .
  • Run docker image.

    • docker run -p 5000:5000 -e OPENWEATHER_API_KEY='<Enter your api key here>' forweather:1.0

    OR (edit api key within file name api.py)

    • docker run -p 5000:5000 forweather:1.0
  • To run unit test inside container.

    • docker run forweather:1.0 sh -c "python3 test_forweather.py"

Usage 2 [Pull docker image]:

  • Pull docker image.

    • docker pull dreampearl/forweather:1.0
  • Run docker image.

    • docker run --name forweather -p 5000:5000 -e OPENWEATHER_API_KEY='<Enter your api key here>' forweather:1.0
  • To run unit test inside container.

    • docker run forweather:1.0 sh -c "python3 test_forweather.py"

Enjoy the application :)

About

Application to display the weather report

License:MIT License


Languages

Language:Python 87.9%Language:HTML 8.2%Language:Dockerfile 3.8%