TODO: Write a project description
- NodeJs 4+ How to install
- Ruby 2.3.1 How to install
- PostgreSQL 9+ How to install
- Cron or similar tool is required for periodically sending notification emails
Install project dependencies:
gem install bundler && bundle install
Set up environment variables by copying .env.sample
to .env
and filling up the necessary values accordingly
See also the CartoDB integration section for information on how to configure your CartoDB account.
To set up the database, run:
bundle exec rake db:create
bundle exec rake db:migrate
To add existing data, run:
bundle exec rake db:seed
bundle exec rake db:geo
bundle exec rake events:create
bundle exec rake layers:import
To run application:
bundle exec rails server
To send periodic notification emails to users, run the following rake
task using cron
or a similar tool:
rake notifications:send
Run rspec:
bin/rspec
Run teaspoon:
rake teaspoon
Run cucumber:
rake cucumber
Run all (cucumber, spec):
rake
capybara-webkit depends on a WebKit implementation from Qt (version >= 4.8), a cross-platform development toolkit. You'll need to download the Qt libraries to build and install the gem. more
OS X Mavericks:
brew update
brew install qt
In cucumber, tag scenarios with '@javascript' to run them using a headless WebKit browser.
In RSpec, use the 'js: true' flag. See the capybara documentation for more information about using capybara with RSpec.
This project requires a CartoDB account to be configured in the .env files In your CartoDB account, you should add these custom functions
- Fork it!
- Create your feature branch:
git checkout -b feature/my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Submit a pull request :D