Skip to content

A rails engine which integrates with Identity to facilitate bi-direction data flow between Identity and Nation Builder

Notifications You must be signed in to change notification settings

the-open/identity-nation-builder

 
 

Repository files navigation

Identity NationBuilder

A rails engine which integrates with Identity to facilitate bi-direction data flow between Identity and NationBuilder.

Created and maintained by GetUp!

Current stable version is [0.1.0]


These instructions should get you up and running with Identity NationBuilder gem locally for development and testing.

Local Development

When developing this engine alongside Identity you'll need to reference where to find the local repository to identity bundler.

  • From within the host identity app cd /path/to/identity
  • Setup bundle reference to the local repo bundle config --local local.identity_nation_builder /path/to/identity_nation_builder
  • When you're done unset bundle config --delete local.identity_nation_builder

System dependencies

PostgreSQL

OSX:

  • You can use Postgres.app (which is simpler to upgrade than a homebrew install). Note: this allows you to connect to Postgres locally without an empty username and password.

Linux:

  • sudo apt-get install postgresql libpq-dev
  • sudo -u postgres psql -c "create role username with SUPERUSER login password 'password'", replacing username and password with the ones you want to use for the app.

Ruby

Install the version of Ruby referenced in the Gemfile using a version manager/installer like chruby and ruby-install

Project setup and configuration

These commands assume you're in the project directory, and have the right version of ruby in your path.

  • Checkout the project from git
  • Install bundler: gem install bundler
  • Install project dependencies: bundle install
  • Copy .env.development.sample to .env.development, and populate the required settings

Running the test suite

  • Copy .env.test.sample to .env.test, and update the DATABASE_URL
  • Create a test database: createdb identity_nation_builder_test_host; RAILS_ENV=test bundle exec rake db:migrate
  • bundle exec rspec runs all the tests

About

A rails engine which integrates with Identity to facilitate bi-direction data flow between Identity and Nation Builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 91.3%
  • HTML 7.4%
  • Other 1.3%