A simple weather web app using python, flask and mysql; constructed with the help of this following tutorial: click me.
Clone this repository. Run pip install -r requirements.txt
.
Create a .env
file with the following structure:
HOST = "YOUR_MYSQL_HOSTNAME"
USER = "YOUR_MYSQL_USER_NAME"
PASSWD = "YOUR_MYSQL_PASSWORD"
DATABASE = "YOUR_MYSQL_DATABASE_NAME"
Filling in the required information with your mysql details.
Run the create_dbs.py
script to create the database in mysql.
Create a foler called log
in the application root directory
Run python app.py
and the web app will be run in your localhost.
Logs can be viewed at log/record.log
The documentation can be viewed in its respective folder: click me