Skip to content

Application to display the weather report

License

Notifications You must be signed in to change notification settings

PriyaDiswar/ForWeather

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.0%
  • HTML 8.2%
  • Dockerfile 3.8%