GithubHelp home page GithubHelp logo

vi-dot / voxe-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from voxe/voxe-web

0.0 2.0 0.0 7.68 MB

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.

Home Page: http://voxe.org

voxe-web's Introduction

<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

voxe-web's People

Contributors

barodeur avatar bnetter avatar ekkans avatar nebj avatar pierrevalade avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.