Skip to content
Mariano edited this page Jul 28, 2014 · 4 revisions

In order to load fixtures to get DemocracyOS up and running, follow these steps from the project's path:

  1. Run node ./bin/dos-db load tag ./lib/fixtures/tags.json to get tags loaded.
  2. 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 ....

In order to load fixtures in remote heroku app you can Run node ./bin/dos-db load law ./lib/fixtures/laws.json -U mongodb://<heroku-url@host:port/user>