Skip to content
The watchdog project.
Python JavaScript Shell
Find file
Latest commit cf89b6b Mar 26, 2012 @aaronsw fix govtrack link
Failed to load latest commit information.
import
se
static
templates
test
utils
vendor
.gitignore
.gitmodules check in web.py 0.3 Oct 3, 2008
LICENSE
LICENSE.txt
Makefile generate njs files from parser Jul 23, 2008
Procfile
README test commit Sep 29, 2008
REQUISITES python2.6; webpy 0.3 fixes Oct 3, 2008
blog.py fix crasher in notfound Dec 11, 2008
census.py
config.py
contacts.py
petition.py
requirements.txt
restore_usertables.sh
save_usertables.sh script to preserve user data on db reloads Nov 6, 2008
schema.py
settings.py fix bug Feb 14, 2012
userdata.sql
webapp.py
webapp_test.py

README

Main code repository for watchdog.net.
http://watchdog.net/

CONTENTS:

    README       # this file
    REQUISITES   # things you need to install for this to work

    data/
      # The raw data that powers the site. This is not checked 
      # into git, but can be downloaded (see below).
      
      crawl/     # incoming data dumps
        almanac/
        census/
        govtrack/
        votesmart/
      parse/     # JSON files from parsing the data
      load/      # SQL from loading into the DB (eventually)
    
    import/      # various import code
      crawl/
      parse/
        manual/  # Data files that have been created by hand.
      load/
    
    utils/       # utility functions
        
    schema.sql   # our database schema
    static/      # static files for the webserver
    templates/   # templates for the website
    webapp.py    # the main code of the web app

INSTALL:

    # checkout the source code
    git clone watchdog.net:~watchdog/git/dev.git watchdog
    cd watchdog
    
    # download a copy of the data sources
    # (you won't have permission to download all of it)
    # (so there will be a few errors when you do this )
    make sync
    cd import
    
    # create the database
    createdb watchdog_dev
    make
    
    # this will parse, process, and import all the data
    
    cd ..
    
    # run the unit tests
    make test
    
    # start the webserver
    make run
Something went wrong with that request. Please try again.