-
Notifications
You must be signed in to change notification settings - Fork 616
Load fixtures
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 topic ./lib/fixtures/topics.json
to get recent topics 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 topic ./lib/fixtures/topics.json -U mongodb://<heroku-url@host:port/user>
Visit our official website - Developed by Democracia en Red and contributors from the world over!