This project is a Flask-based weather application that allows users to check the current weather conditions based on either city and country or geographic coordinates. And in addition allows viewing the user's search history.
Make sure you have the following tools installed on your machine:
Or install requirements.txt file with:
pip install -r requirements.txt
-
Clone the repository:
git clone https://github.com/alon-ben-david/flask-weather-app.git cd flask-weather-app
- Make sure you have MySQL installed and running.
- Create a database named
flask_users
. - Set up the necessary tables using the provided SQL scripts.
- Open the
app.py
file. - Update the MySQL configuration with your credentials.
To run the application, execute the following command:
python app.py
Visit http://localhost:5000/ in your web browser to access the weather application.