forked from DemocracyOS/democracyos
-
Notifications
You must be signed in to change notification settings - Fork 8
Load fixtures
Guido Vilariño edited this page Feb 4, 2014
·
2 revisions
In order to load fixtures to get DemocracyOS up and running, follow these steps from the project's path:
- Run
node ./bin/dos-db load tag ./lib/fixtures/tags.json
to get tags loaded. - Run
node ./bin/dos-db load law ./lib/fixtures/laws20131014.json
to old laws loaded. - Run
node ./bin/dos-db load law ./lib/fixtures/laws.json
to get recent laws loaded.
If you want to load your own, make sure your json
files match the standard an also that the comply with the matching model
at ./lib/models/<model>.js
.
If, when running these scripts, you get an error that looks like unable to find file xxx
make sure you're running it from the project's root path and prepend NODE_PATH=.
to your command line call. It should be somthing like NODE_PATH=. node ./bin/dos-db load ...
.