This project produces server-rendered HTML pages for Water Data For The Nation.
- Create a virtualenv and install the project's Python requirements.
virtualenv --python=python3.6 env
env/bin/pip install -r requirements.txt- To override any Flask configuration parameters, modify
instance/config.py. These will override any values in the project'sconfig.py. There is a sample available:
mkdir -p instance
cp config.py.sample instance/config.pyTo run the Flask development server at http://localhost:5050:
env/bin/python run.pyThe Python tests can be run as follows:
env/bin/python -m pytest waterdataNote - you may find that some tests are setup relative to the root directory, and the above command may produce errors.
If that happens run . . .
# from the root directory
wdfn-server/env/bin/python -m pytest