Skip to content

Data visualization app for the National Park Service Kelp Forest Monitoring program

Notifications You must be signed in to change notification settings

underbluewaters/pyrifera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyrifera

Data visualization app for the National Park Service Kelp Forest Monitoring program

Developer Installation Notes

Dependencies

Before embarking on installing marinemap and pyrifera you'll need the following installed on your system

Cloning the repo

git clone git@github.com:underbluewaters/pyrifera.git
cd pyrifera/pyrifera
pip install -r requirements.txt

Database Setup

Create the initial database

echo "DROP DATABASE pyrifera;" | psql -h localhost
echo "CREATE DATABASE pyrifera;" | psql -h localhost
echo "create extension postgis;" | psql -h localhost pyrifera

Tell pyrifera where to store media, and how to connnect to the db

head -n 3 settings_local.py.template > settings_local.py
mkdir ../deployed-media
python -c 'import os; print "MEDIA_ROOT=\"" + os.path.abspath("../deployed-media") + "\""' >> settings_local.py 
echo 'MEDIA_URL = "http://localhost:8000/media/"\n' >> settings_local.py
echo 'DATABASES = {
    "default": {
        "ENGINE": "django.contrib.gis.db.backends.postgis",
        "NAME": "pyrifera",
        "USER": "",
        "PASSWORD": "",
        "HOST": "localhost",
        "PORT": "",
    }
}' >> settings_local.py

Setup the applications database schema

python manage.py syncdb
python manage.py migrate

Final installation steps

python manage.py site localhost:8000
python manage.py install_media

Feed data into the database following the steps in the data update guide.

Run the application development Server

python manage.py runserver

About

Data visualization app for the National Park Service Kelp Forest Monitoring program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published