Skip to content

Latest commit

 

History

History
18 lines (18 loc) · 1.35 KB

File metadata and controls

18 lines (18 loc) · 1.35 KB

What are these files?

These are the files of a Python program (a.k.a. App 6) built in the Udemy course "The Complete Python Course in the Professional OOP Approach." The course covers how to make this program step by step, plus nine other Python programs. If you want to learn Python, you can take the course for a high discount in the link below: https://www.udemy.com/course/the-python-pro-course/?referralCode=D1224FDF916B73D7E740

What does the program do?

The program is written in Python. It is a web app with a web form where the user can enter their weight, height, age, city, and country. Then, the program scrapes the temperature of the user's location, and calculates how many calories the user needs for that day given the user data and the air temperature.

How to run the program

  1. Either clone this repo or download all these files by going to Code -> Download ZIP.
  2. Create a PyCharm (or other IDE) project and configure a Python interpreter for the project.
  3. Open the terminal and install the required packages by running: pip install -r requirements.txt
  4. Go to https://openweathermap.org/api, and create an account to get an API key.
  5. Go to geo.py, and change the "INSERT YOUR API KEY HERE" string to your own Openweathermap API key.
  6. Run main.py with Python.
  7. Go to http://127.0.0.1:5000/ in your internet browser to see the web app.