/waterbeacon

waterbeacon

Primary LanguagePython

waterbeacon

waterbeacon

Resources

https://www.waterqualitydata.us/

NSF Water Quality Index

http://home.eng.iastate.edu/~dslutz/dmrwqn/water_quality_index_calc.htm

Installation Guide

You'll need to install python2 along with pip.

Next, you'll need to install python virtual environment wrapper. You can do so by running pip install virtualenvwrapper.

Now, activate a python virtual environment by running mkvirtualenv ${ENV_NAME}. The ENV_NAME is arbitrary. We'll use "wb" for simplicity.

Finally, run pip install -r requirements.txt to install necessarry dependencies.

When that completes, run ./manage.py migrate --settings=settings.dev to create a local SQLite db instance for developnent.

Finally, run ./manage.py runserver --settings=settings.dev to kick off a dev server.

The dev server will run on localhost:8000 by default. If you prefer another port, just pass the desired port number following the previous command. That is ./manage.py migrate --settings=settings.dev ${PORT}

Note: to deactive the virtual env wrapper, just run deactivate.