-
Notifications
You must be signed in to change notification settings - Fork 37
/
README
58 lines (43 loc) · 1.4 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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