This is a Ruby on Rails app. In order to run it locally, you must have the latest version of ruby
installed. It also requires bundler
and npm
or yarn
.
This article goes over the steps required to run it locally.
The application will be available locally here: http://localhost:3000/
The deployed version is available here: https://simplify-ledger-06aefb87ee3d.herokuapp.com/
- Go to
https://simplify-ledger-06aefb87ee3d.herokuapp.com/
- Upload a single json file with a list of transactions and click on 'Upload JSON File'
- The transactions will be parsed and shown in a table.
- The json file that is accepted in the prescribed format will be parsed and the following operations will be made:
- Any duplicate activity IDs will be ignored. Based on the sample data, any transactions with duplicate IDs contained identical data inside it.
- The total balance is calculated and stored for the sake of auditing. For the main application, the final balance is used since it is accurate.
- Description field: Combining the type and description of source and destination, a custom description is provided.
- A database has not been used here, since there was no need to store any data. However, it can be incorporated if required.