python -m pip install --upgrade pip
(to isolate the versioning of the dependencies so they don't clash with global variables)
python -m pip install --user virtualenv
python -m venv .venv
.venv/Scripts/Activate
# FOR MAC:
.venv/bin/activate
# Ensure that you are in the project root directory
# (directory containing the README file)
python -m pip install .
python -m pip install -r tests/requirements.txt
# To initialise and EMPTY database
python -m flask --app solar_offset init-db
# To populate the database with the given test data
python -m flask --app solar_offset init-db .\tests\data.sql
# You can select another sql file to populate the database with different data
# For guidance on the database tables and columns, see the `solar_offset/schema.sql` file
python -m flask --app solar_offset run -h localhost --port 8000