Skip to content

acgourley/watchdog

 
 

Repository files navigation

Main repository for the watchdog project.
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 via:
      # 
      # rsync -avz watchdog.net:~watchdog/web/data .
      # 
      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
    rsync -avzu watchdog.net:~watchdog/web/data .
    cd import
    
    # create the database
    createdb watchdog_dev
    make
    
    # this will:
    # a) set up your database tables
    # b) parse the raw data (from data/crawl) into json (stored in data/parse)
    # c) import the json into your database tables
    
    cd ..
    
    # start the webserver
    python webapp.py

About

The watchdog project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.1%
  • JavaScript 2.9%