We're currently using version 2.3.0.
Update to the latest version and install ruby 2.3.0 and the latest bundler:
rvm get latest rvm install ruby-2.3.0 rvm use --create 2.3.0@eventr gem install bundler
Update to the latest version and install ruby 2.3.0 and the latest bundler:
brew update # update brew's formulas brew upgrade rbenv # upgrade to the latest rbenv brew upgrade ruby-build # upgrade to the latest ruby build rbenv install 2.3.0 rbenv shell 2.3.0 gem install bundler
We're using WebKit in our test suite. So we need to install QT in order to compile WebKit:
brew update brew install qt
For QT versions 5.5 and later, the package is keg only, so you need to symlink binaries like qmake.
For instructions, see: https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit#homebrew
We're using PostgreSQL version 9.2.4. Update brew to install the latest version:
brew update brew install postgresql
Follow brew's steps to create the default database and make postgres autoload on system startup.
Create the database user with correct role:
psql -h localhost postgres -c "create user eventr with password 'eventr' CREATEDB"
When asked for a password, use the following command instead and use eventr as the password:
createuser -P -S -d -R -l -e eventr
As user postgres set up hstore extention:
psql template1 -c 'create extension hstore'
git clone git@github.com:GEANT/eventr.git cd eventr
bundle install rake db:create db:migrate db:test:clone db:seed
You're now ready to run the project:
rails server
Run the complete test suite with:
rspec
Run only the feature tests:
rspec spec/features
We use LocaleApp to manage static content. The translation files are hosted at http://www.localeapp.com/projects/4957.
To update the local translation files, run:
bundle exec localeapp pull # or alias this as 'belp'