The inventory manager is an osseus based server implementation for community currency issuers.
It provides blockchain reflection of offchain activities on community currencies issued against the CLN.
To make sure that the following instructions work, please install the following dependencies on you machine:
- Node.js (comes with a bundled npm)
- Git
- MongoDB
To get the source of inventory-manager
, clone the git repository via:
$ git clone https://github.com/ColuLocalNetwork/inventory-manager
This will clone the complete source to your local machine.
Navigate to the project folder and install all needed dependencies via npm:
$ npm install
This commands installs everything which is required for building and testing the project.
This task will run the application and start listening on port 8080
.
Under the hood, we use a complete osseus stack.
You will find the local configuration at LOCAL.js.
See tutorial.
See tutorial.
See tutorial.
npm run lint
performs a lint for all source code using standard js.
npm test
executes (as you might think) the unit tests, which are located
in test
.
Before running npm test
you should:
$ export A_LOT_OF_TXS={n}
Notes
{n}
is number of transactions to test- There's a 1 second delay between each blockchain transaction so be patient :)
The task uses truffle framework.
cp .env.example .env
docker-compose up -d
Please see contributing guidelines.
Code released under the MIT License.