res
- Ruby 2.0.0
- mongodb
- elasticsearch
##Installation
Install elasticsearch: brew install elasticsearch
run elasticsearch
to start search engine.
Install bundler: gem install bundler
cd into project directory and run bundle install
run rails s
to start the application
##Load Database example
mongorestore db/example_data.json/
##Load Database example in Heroku
mongorestore -h oceanic.mongohq.com:10000 -d app21981089 -u user -p password db/example_data.json/pop_up_stores_development/
##Load Database example in Dokku
mongodump --port 49154 -d personalmarkets-production -o test.json -u personalmarkets -p
##Dump Database example
mongodump -d pop_up_stores_development -o db/example_data.json
##Database seeds To seed the database with example data:
rake db:seed
To drop the database:
rake db:purge
In heroku
heorku run rake db:purge