Skip to content

feteezuk/flask_demo

Repository files navigation

Flask demo - Continuous Deployment Microservice Test

flask_demo

Small Flask Microservice that makes an API call to Open Weather Map, and brings back information about current weather information for Specified City.

Coursera Lab: duke-coursera-ccb-lab2

Invoke Endpoint

*Go to terminal and type git clone git@github.com:feteezuk/flask_demo.git

  • Create virtualenv and source it: python3 -m venv flask_demo && source flask_demo/bin/activate
  • Install and Test: make all
  • Run it: python app.py

You will get the message :

  • Serving Flask app "app" (lazy loading)
  • Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Debug mode: on
  • Running on http://[PORT ADDRESS]
  • Restarting with watchdog (fsevents)
  • Debugger is active!
  • Debugger PIN: ****
  • I am inside hello world

Go to browser, and type in

  • http://[PORT ADDRESS]/change

  • Go to name_the_city_to_search_for.py file and type in city name, then refresh browser. You should get city weather information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published