The DiagnosticsViewer is a Django web application for uploading, sharing, and distributing any kind of structured output. The output_viewer project provides a convenient set of scripts for interacting with the app (it builds a JSON, uploads the relevant files, and manages account information on the client).
- Install anaconda
- Clone the repo (
git clone git://github.com/ESGF/DiagnosticsViewer
) - Install the conda requirements for the app:
conda create -p $REPO_DIRECTORY/env --file $REPO_DIRECTORY/ea/conda_reqs.txt
- Activate the conda environment (
source activate $REPO_DIRECTORY/env
) - Install the pip requirements for the app:
pip install -r $REPO_DIRECTORY/ea/pip_reqs.txt
- Create the config file (
cp $REPO_DIRECTORY/ea/eaconfig.cfg.tpl $REPO_DIRECTORY/ea/eaconfig.cfg
) - Update the config file's settings for your environment (Set the database up appropriately, update the secret_key, change debug to False when you go to production, update the paths section)
- Create the database:
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
- Run the server in the stack of your choice.
This project was created in a collaboration of Lawrence Livermore National Laboratory and Oakridge National Laboratory