βFinscale-Contracts: Creates a wallet with some Eth balance for the account initiating the transaction.
In order to successfully run the finscale-contracts project, you need to set some environment variables the program requires which are provided below:
WEB3J_NODE_URL=http://127.0.0.1:7545
WEB3J_WALLET_PASSWORD=changeit
WEB3J_WALLET_PATH=/home/${ USER }/.finscale/wallet.json
Assuming you have already created the directory using
1
mkdir ~/.finscale
Copied!
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
Running the accounting service
First, you need to set the following environment variables required by finscale-accounting:
WALLET_PASSWORD=changeit
WALLET_PATH=/home/${ USER }/.finscale/wallet.json
Next, start the JHipster Registry by running the following command at the root of the project
1
docker-compose -f src/main/docker/jhipster-registry.yml up
Copied!
Then, run the project and you should now have access to the API.