Skip to content
/ voxe-web Public

Voxe.org is a non-partisan tool that compares and contextualizes political platforms. Citizens, media and startups can reuse this open platform designed to held forge an informed electorate.

License

Notifications You must be signed in to change notification settings

voxe/voxe-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8c90eaf · Mar 20, 2017
Mar 20, 2017
Jul 25, 2016
Dec 16, 2011
Oct 3, 2011
Oct 3, 2011
Feb 6, 2012
Dec 8, 2014
Oct 3, 2011
Oct 31, 2012
Feb 3, 2012
May 2, 2013
Sep 28, 2013
Apr 17, 2013
Feb 22, 2013
Feb 22, 2013
Apr 3, 2013
Jul 25, 2016
Jul 25, 2016
Jul 19, 2016
Jul 19, 2016
Jun 23, 2014
Jul 25, 2016
Feb 22, 2013
Mar 5, 2013
Oct 3, 2011
Nov 28, 2011
Jul 25, 2016
Jul 25, 2016

Repository files navigation

<img src=“https://travis-ci.org/voxe/voxe-web.png” alt=“Build Status” />

Getting started

Clone the git repository

git clone git@github.com:voxe/voxe-web.git

Ensure you have ImageMagick installed on your system. If not, check out chapter “Dependencies” below.

At the prompt command, install gems:

bundle install

At the prompt command, start your server:

rails server

If you need some data, check out chapter “Import Data” below.

Environment

  • Ruby 1.9.3

  • mongoDB 2.2.X

  • imagemagick

  • heroku

Dependencies

We doing some image processing with ImageMagick (www.imagemagick.org).

For MacOS X users, you can install Homebrew (mxcl.github.com/homebrew) a packet manager and then install ImageMagick.

At the command prompt:

brew install imagemagick

If you want to launch acceptance tests, you should install the qt development libraries.

MacOS X with homebrew:

brew install qt

An installation guide for qt libs is available here : github.com/thoughtbot/capybara-webkit/wiki/Installing-QT

Then:

bundle install

Import Data

To get some data from 2007 French Presidential Election, at the command prompt type:

rake migrate:france2007

If you have access to your staging server, you can also use the voxe custom “heroku-mongo-sync” plugin to get the database we use on this server:

heroku plugins:install http://github.com/voxe/voxe-heroku-mongo-sync.git
heroku mongo:pull --app voxe

Then, to update the staging server with the production data

heroku mongo:push --app voxe-staging

Testing

At the command prompt, launch tests:

rake test

There are also acceptance tests which can be run with this command:

rake cucumber

Deployment

Deploying in staging mode:

rake deploy:staging

Or in production mode:

rake deploy:production

About

Voxe.org is a non-partisan tool that compares and contextualizes political platforms. Citizens, media and startups can reuse this open platform designed to held forge an informed electorate.

Resources

License

Stars

Watchers

Forks

Packages

No packages published