Skip to content

asqus/asqus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

185 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

We're building a publicly-owned political dialogue platform.

As a nonprofit that's building open-source technology, Asq.Us is bridging the gap between you and your elected officials.

This is the 'townhall' of the 21st century.

By using the internet, we can finally connect the people that make up America's democracy.

asq.us

================= RUNNING THE CODE

Requirements

  • Ruby 1.9.3
  • rubygems
  • postgresql

Install the Dependencies

You will need to:

Postgresql

  • Create database.yml file in config (copy the config/database.yml.sample)
  • You need to create a database, a user, and grant that user privileges to database.
  • good instructions

Ruby Project Setup

  • cd asqus
  • bundle install
  • bundle update

Creating the asqus database

  • asqus> rake db:create
  • asqus> rake db:migrate
  • asqus> rake db:seed
  • cd db
  • asqus/db> ./import-officials (first edit this file with the correct database name & user) (warning: can take 10 minutes or so to run)
  • asqus/db> bundle exec rails runner "eval(File.read 'db/populate-congress-photos.rb')"

Obtain a private config file

  • obtain a /config/private/config.yml file

Linux Notes

  • installing ruby, and ruby-dev
  • %> sudo apt-get/yum install ruby ruby-dev libpq-dev build-essential

License

This program is provided under an MIT open source license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 72.5%
  • CSS 18.1%
  • JavaScript 7.9%
  • CoffeeScript 1.4%
  • Shell 0.1%