Skip to content

srxzr/UI

Repository files navigation

Crowdsource Platform - Crowdresearch HCI Stanford

This is a Django 1.8 app using a Postgres database that can be deployed to Heroku.

Setup

Install Postgres and create a new database:

bash> psql
psql> CREATE DATABASE crowdsource_dev ENCODING 'UTF8';

Create a local_settings.py file and configure it to connect to the Postgres database:

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql_psycopg2",
        "NAME": "crowdsource_dev"
    }
}

Source the virtual environment, install dependencies, and migrate the database:

bash> source venv/bin/activate
bash> pip install -r requirements.txt
bash> python manage.py syncdb
bash> python manage.py migrate

bash>brew install node  #use other ways if you don't have brew
bash>npm install -g bower
bash>bower install ng-grid
bash>python manage.py bower_install

If you encounter an error angular-route.js 404, do this:

bash> bower cache clean
bash> rm -fr staticfiles/bower_components
bash> python manage.py bower_install

You will probably be asked which Angular version should be used, choose 1.3.14.

If there are no errors, you are ready to run the app from your local server:

bash> python manage.py runserver

How to load data using FIXTURE? Ranking Dataset (>800 records)

bash> python manage.py dumpdata crowdsourcing > fixtures/neilCrowdsourcingRankingData.json
bash> python manage.py loaddata fixtures/neilCrowdsourcingRankingData.json

User Interface:
Alt text Alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published