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
If you wish to have a hands-off setup, you can get the application running with vagrant by running vagrant up
in the project root.
You can connect to the database using GUI tools like pgAdmin by connecting via port 5432 on your local machine with the following credentials:
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
To restore from a .bak backup file, simple run the command pg_restore -h localhost -p 5432 -U postgres -d gcpm_development -v "backup_file.bak" --single-transaction --clean
, and enter the password.
- 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