Extract information about parliamentarians from brazilian open data
Setup your database information in lib/settings.rb
EXTRACT_MONGO_SETTINGS = {
'production' => {
'name' => "opendata_extract",
'host' => "localhost",
'port' => "27017",
},
'development' => {
'name' => "opendata_extract_dev",
'host' => "localhost",
'port' => "27017",
},
'test' => {
'name' => "opendata_extract_test",
'host' => "localhost",
'port' => "27017",
},
}
docker-compose up
ruby test/unit/test_parliamentarians.rb
ruby bin/importParliamentarians.rb
This command will start mongo, execute tests and stop mongo
make tests
This command execute docker-compose up -d
make start_mongo
This command execute docker-compose stop
make stop_mongo
This command start mongo and import parliamentarians
make dump