Skip to content

mashtalir/openweather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For Linux users

Create virualenv and activate

python3 -m venv venv

source ./venv/bin/activate

Install requirements

pip install -r requirements.txt

Run server

cd application

flask run
(if flask run doesnt work write - "export FLASK_APP"=app
then "flask run")

Run script get_data.py

venv/bin/python3 get_data.py

Run script request_samples.py

venv/bin/python3 request_samples.py

For Windows users

Create virualenv and activate

pip install virtualenv

python -m virtualenv venv

venv\Scripts\activate

Install requirements

pip install -r requirements.txt

Run server

cd application

flask run (if flask run doesnt work write - "set FLASK_APP"=app then "flask run")

Run script get_data.py

venv\Scripts\python.exe get_data.py

Run script request_samples.py

venv\Scripts\python.exe request_samples.py

Some CLI commands (DB is already seted up so its not obligatory)

Create tables in DB

flask create-tables

Drop tables in DB

flask drop-tables

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published