ronald-kimeli / django-water-quality

This is a water indication in conjunction with earth engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Water-Quality Indicators Monitoring Tool

  • Clone this repository to your computer.

    git clone https://github.com/KimelirR/django-water-quality.git
    
  • Change file directory

     cd django-water-quality
    
  • Create .env file

    pip install virtualenv
  • We will name our virtual environment as env

     python3 -m venv env
  • Activate virtual environment on linux

     source env/bin/activate
    
  • Install required dependencies through

     pip install -r requirements.txt
  • Migrate databases

     python3 manage.py makemigrations
     python3 manage.py migrate

Note!

  1. Ensure you create SuperUser to manage django admin
 python3 manage.py createsuperuser

Lastly! Run your django app

  • All the functions and classes are inside src folder.

     python3 manage.py runserver
  • In your browser go to address below localhost

Note this and follow the procedure below to get your service account instructions.

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

On Ubuntu you need this to install mysqlclient

sudo apt-get install python3-dev default-libmysqlclient-dev build-essential

Improved codes on on geefunctions.py which is on charts,maps and query

 scopes=ee.oauth.SCOPES.append(google_api)) 

 credentials = ee.ServiceAccountCredentials(email=service_account, key_file=privateKey)


 from 

 scopes=ee.oauth.SCOPE + ' https://www.googleapis.com/auth/drive ')

 credentials = ee.ServiceAccountCredentials(service_account, privateKey)

About

This is a water indication in conjunction with earth engine


Languages

Language:JavaScript 53.4%Language:Python 25.4%Language:HTML 18.7%Language:CSS 2.6%