Skip to content

A Rails app that helps manage Neutrinet accounting (mirror from https://gitlab.domainepublic.net/Neutrinet/accounting)

Notifications You must be signed in to change notification settings

Neutrinet/accounting

Repository files navigation

Build Status

README

Setup Locally

Setup locally by Installing Ruby and Postgres

Needed packages

  • $ apt-get install git autoconf bison build-essential libssl-dev libyaml-dev libreadline-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev nodejs
  • $ sudo apt-get install -t stretch-backports nodejs (a recent version of node is needed)

Install Ruby

  • install rbenv: follow those instructions
  • install ruby-build: follow those instructions (install "As an rbenv plugin")
  • install Ruby: $ rbenv install 2.6.3
  • set the default version for Ruby: $ rbenv global 2.6.3
  • test it worked: $ ruby -v
  • install Bundler: $ gem install bundler

Install Nodejs

  • check if you have a nodejs version >= 8: $ nodejs -v
  • if you're on a Debian-like system and have an old version installed, try to install it from the backports repository. If you are using stretch, edit /etc/apt/sources.list, add this line in at the end of the file: deb http://http.debian.net/debian stretch-backports main, save and exit
  • update your sources and install node from backports: $ apt-get update && apt-get install nodejs -t stretch-backports
  • check your nodejs version: $ nodejs -v

Install Postgres

  • $ sudo apt-get install postgresql libpq-dev
  • change default user's password:
$ sudo -u postgres psql postgres
# alter user postgres with password 'postgres';
# \q

Setup

  • clone the app: git clone https://github.com/Neutrinet/accounting.git && cd accounting
  • run the setup script: bin/setup

Run the tests

  • in the project folder: bin/cibuild

Run the app locally

Setup locally with Docker

  • TODO

Detect new types of transactions

If a new recurring type of transaction shows up and you want the app to automatically detect it, follow those steps:

  • in specs/fixtures/movements, add a new file prefixed with ing, e.g: ing_my_new_transaction.csv
  • the first line in this file should contain the header of the CSV file, you can take one from specs/fixtures/movements/ing_gandi.csv
  • the second line should be an example of the transaction you want to automatically detect (don't forget to anonymize the line, e.g: name, bank account, ...)
  • in specs/models/movement_row_spec.rb, find the example spec, duplicate it and replace the values with what you expect to find from the CSV line
  • run the specs (see above), they should fail
  • add a method in app/models/movement_identifier.rb to detect your new transaction type. Run the tests, they should all pass.

Documentation

Here's how to use the tool: https://wiki.neutrinet.be/administration/comptabilit

About

A Rails app that helps manage Neutrinet accounting (mirror from https://gitlab.domainepublic.net/Neutrinet/accounting)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published