json-warehouse
v0.0.1-beta3
Published
Json Warehouse is a blockchain based data storage and management system. It uses solidity smart contracts to save data in Ethereum's blockchain in json-path format. ## Getting started ### Requirements #### Node.js Download it [here](https://nodejs.org/en/
Downloads
5
Maintainers
Readme
Json Warehouse
Json Warehouse is a blockchain based data storage and management system. It uses solidity smart contracts to save data in Ethereum's blockchain in json-path format.
Getting started
Requirements
Node.js
Download it here
Steps
Clone
> git clone https://github.com/bloomenio/json-warehouse.git
Install dependencies
> cd json-warehouse > npm install
Link
> npm link
Set up blockchain
Configure your own .env file by adding the HD wallets mneemonic to the following .env.example snippet:
DEVELOPMENT_MNEMONIC="custom mnemonic phrase" DEVELOPMENT_HOST="127.0.0.1" DEVELOPMENT_PORT=8545 DEVELOPMENT_NETWORKID=123456
Open a new terminal window and run ganache-cli
> npm start ganache
Switch to the previous terminal window and deploy de smart contract
> npm start development
Usage
Now you can start storing data.
> jsonwarehouse --help
_______ ____ _ __ _ __ __
/ / ___// __ \/ | / / | | / /___ _________ / /_ ____ __ __________
__ / /\__ \/ / / / |/ / | | /| / / __ `/ ___/ _ \/ __ \/ __ \/ / / / ___/ _ \
/ /_/ /___/ / /_/ / /| / | |/ |/ / /_/ / / / __/ / / / /_/ / /_/ (__ ) __/
\____//____/\____/_/ |_/ |__/|__/\__,_/_/ \___/_/ /_/\____/\__,_/____/\___/
Usage: jsonWarehouse [options] [command]
Options:
-v --version output the version number
-h, --help output usage information
Commands:
new-container|nc Create a new JSON container.
get-data|gd Get data from a JSON container.
update|u Update data of a JSON container
Empty command triggers the menu.
Examples:
$ jwh
$ jsonwarehouse nc
$ jwh get-data
$ jwh --version