thefirsthero / WeatherWebApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather Web App

A simple weather web app using python, flask and mysql; constructed with the help of this following tutorial: click me.

Installation and Setup Instructions

Clone this repository. Run pip install -r requirements.txt.

Environment Variables

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.

Database Setup

Run the create_dbs.py script to create the database in mysql.

Create Log Folder

Create a foler called log in the application root directory

Running Web App:

Run python app.py and the web app will be run in your localhost.

Viewing Logs

Logs can be viewed at log/record.log

Documentation

The documentation can be viewed in its respective folder: click me

About


Languages

Language:Python 100.0%