IQSS / eyeData

Adaptive Visualizations of Research Data
MIT License
0 stars 3 forks source link

eyeData

Repo for DPSI Team eyeData. This project includes a set of tools for searching and exploring survey data on Dataverse.


Local Install (on OS X and Windows 8.1)

This is a quick checklist to install eyeData on an OS X or Windows 8.1 machine. Currently, it installs the twoscoops project template for Django 1.6, including creating a sqlite database and running a skeleton site.

Install pip

Install virtualenvwrapper

Pull down the eyeData repository

Setup on the local machine

cd into the eyeData repository

cd ~\eyeData

Install the virtualenv and the requirements

This may take a minute or two. Xcode needs to be installed.

mkvirtualenv eyedata
pip install -r requirements/local.txt

If you run into Xcode (or other errors) when running the install, google it. Sometimes the Xcode license agreement hasn't been accepted

Configure settings (still in ~\eyeData)

vim $VIRTUAL_ENV/bin/postactivate

On windows:

vim %VIRTUAL_ENV%\Scripts\activate.bat

'vim' may be any text editor

export DJANGO_DEBUG=True
export DJANGO_SETTINGS_MODULE=eyedata.settings.local

On windows:

set "DJANGO_DEBUG=True"
set "DJANGO_SETTINGS_MODULE=eyedata.setings.local"
deactivate
workon eyedata
echo $DJANGO_SETTINGS_MODULE

On Windows, use:

echo %DJANGO_SETTINGS_MODULE%

You should see eyedata.settings.local

Sync the database (still in ~\eyeData)

cd eyedata
python manage.py syncdb

Run the test server (still in ~\eyeData\eyedata)

python manage.py runserver

Edit the template files

Working with the project (post installation)

cd ~\eyeData\eyedata
workon eyedata
python manage.py runserver

basic-screenshot

Vagrant environment

This git repository contains a Vagrant environment that is used to mimic the Linux server that hosts the application in production. If you have Vagrant and VirtualBox installed you should be able to run vagrant up see the running eyeData app at http://localhost:8000 (but you'll need to set "DEBUG = True" in eyedata/eyedata/settings/production.py).