Accounting
This page explains the accounting micro-services.
Last updated
Was this helpful?
This page explains the accounting micro-services.
Last updated
Was this helpful?
Our goal is to enable IFRS standards of accounting that track a granular level of accounting.
Two types of accounting are part of Finscale's Accounting service: Cash-based and Accrual.
This service makes use of smart contracts to store information.
Before attempting to run the project, you need the following installed on your system
Docker and Docker-Compose
Ganache GUI
Postman
Refer to the Docker docs for installation instructions.
Ganache is a tool used for setting up a personal Ethereum Blockchain for testing Solidity smart contracts.
Next, make the downloaded file executable
Next, run the file
Upon successful installation, you should see a screen that looks like this
Click on the "QUICKSTART" button to get started.
The following services must be run beforehand:
Assuming you have already created the directory using
And ${ USER } is the current user of your system
If you're using IntelliJ IDE, the above env variables can be easily set by going to
Run > Edit Configurations... > Environment variables
WEB3J_NODE_URL points to Ganache's RPC server default address
If the project has run successfully, you should now see a wallet.json file created in the directory with some content e.g, /home/cadreia/.finscale/wallet.json
Then, run the project and you should now have access to the API.
POST
http://{{accountingUrl}}/ledgers
Creates a new ledger
Authentication
string
Authentication token
showAccountsInChart
boolean
type
string
description
string
name
string
identifier
string
uniquely identifies a ledger
GET
http://{{accountingUrl}}/ledgers/:id
id
string
ID of the ledger to get
Authentication
string
Authentication token
GET
http://{{accountingUrl}}/ledgers
Authentication
string
Authentication token
First, navigate to the official website and download the latest Linux release which will be the *.AppImage
This is required for testing the endpoints. You can install Postman on Linux by downloading it, or via the store link using the command
: Provides the authentication mechanism.
: Creates a wallet with some Eth balance for the account initiating the transaction.
In order to successfully run the project, you need to set some environment variables the program requires which are provided below:
WEB3J_NODE_URL= WEB3J_WALLET_PASSWORD=changeit WEB3J_WALLET_PATH=/home/${ USER }/.finscale/wallet.json
First, you need to set the following environment variables required by :
Next, start the by running the following command at the root of the project