Skip to content

Reporting on Double Entry accounts and transfers

License

Notifications You must be signed in to change notification settings

envato/double_entry-reporting

Repository files navigation

DoubleEntry Reporting

License MIT Gem Version Build Status

Installation

In your application's Gemfile, add:

gem 'double_entry-reporting'

Download and install the gem with Bundler:

bundle

Generate Rails schema migrations for the required tables:

rails generate double_entry:reporting:install

Update the local database:

rake db:migrate

Development Environment Setup

  1. Clone this repo.

    git clone git@github.com:envato/double_entry-reporting.git && cd double_entry-reporting
  2. Run the included setup script to install the gem dependencies.

    ./script/setup.sh
  3. Install MySQL, PostgreSQL and SQLite. We run tests against all three databases.

  4. Create a database in MySQL.

    mysql -u root -e 'create database double_entry_reporting_test;'
  5. Create a database in PostgreSQL.

    psql -c 'create database double_entry_reporting_test;' -U postgres
  6. Specify how the tests should connect to the database

    cp spec/support/{database.example.yml,database.yml}
    vim spec/support/database.yml
  7. Run the tests

    bundle exec rake