Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 836 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 836 Bytes

Exceedances.

Local Setup using a Python virtual environment.

  • Create local python environment

    • windows python -m venv [local_env_name e.g env]

    • linux/mac python3 -m venv [local_env_name e.g env]

  • Activate the environment

    • windows
      env\scripts\activate

    • linux/mac source env/bin/activate

  • Install required packages.

    • pip install -r requirements.txt
  • Create a .env file with the following keys

    • ENV e.g staging
    • MONGO_GCE_URI
    • MONGO_DEV_URI
    • DB_NAME_DEV
    • DB_NAME_PROD
    • DB_NAME_STAGE
    • SECRET_KEY
  • Run script

    • python main.py - the default tenant AirQo will be used in this case
    • or by explicitly stating the tenant python main.py --tenant=kcca

Local Setup using docker

  • Coming soon....