Code Monkey home page Code Monkey logo

represent's Introduction

REPresent

Build Status

As participants in democracy, it is difficult for voters to know whether or not the representatives they send to Congress on their behalf are pursuing the policy goals the voters sent them there to pursue. This problem makes it difficult for voters to know whether or not they should return their representatives to Congress. REPresent is a solution to this problem. REPresent is a platform to hold representatives accountable by allowing a user to compare their votes on bills with how the representatives voted. A user can favorite representatives, compare votes on bills, and receive a comparison score that is saved on their user dashboard. When this representative is up for reelection, a user can easily review their comparison score with that representative to determine whether or not they want to send them back to Congress. This provides a way for citizens to easily stay informed on the actions of their representatives and cast their votes with confidence.

Deployed Application: https://represent-application.herokuapp.com/
Sinatra Microservice Repo: https://github.com/arpariseau/represent-sinatra

Getting Started

  • Click "Fork" in the upper right hand corner of the page
  • Follow instructions below:
git clone [email protected]:YOUR_USER_NAME_HERE/represent.git
cd represent
- bundle install
- bundle update
- rake db:{create, migrate}

Prerequisites

ruby -v
rails -v

The output should start with something like ruby 2.5.X The output of rails should start with something like rails 5.1.X

If your ruby version is not the following, please follow the link here If your rails version doesn't start with 5.1, please follow the link here

Installing

To seed the databases, run the following rake tasks:

rake seed_reps:load
rake seed_bills:load

This should result in 100 Senator objects and 437 HouseMember objects matching the active members of the current 116th United States Congress, and 168 Bill objects that correspond to bills that have received recorded passage votes in either the US House of Representatives or the Senate.

Running the tests

To run the tests, simply execute:

bundle exec rspec

There should be 70 passing tests.

Built With

  • Rails
  • Ruby
  • PostgreSQL
  • JavaScript ES6
  • CSS
  • SCSS
  • HTML5

Authors

represent's People

Contributors

rostammahabadi avatar dborski avatar antoniojacksonii avatar arpariseau avatar

Stargazers

 avatar

Watchers

James Cloos 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.