This is a starter kit to start developing your app using the decentralized protocol Stow as the backend and data manager. Stow is going to be used to store any data you want and relate it to your users.
This starter kit is powered by Truffle Box and uses Metamask to authenticate users and sign transactions.
First you have to install Truffle
npm install -g truffle
Create a directory for your project and download the truffle box.
mkdir my_stow_app
cd my_stow_app
truffle unbox ConsenSys/stow-box
git clone git@github.com:ConsenSys/stow-box.git
cd stow-box
Install the dependencies:
npm install
In order to be able to fully use your starter kit you need to download Metamask to manage your Web3 instance and you connection to the Ethereum Blockchain Network.
If you don't have Metamask yet, go to the following link, download and install it https://metamask.io/
You have everything setup, now you have to run some services in order to have you first Stow app working.
There are 3 services that the starter kit need. For all of them you have the default running version or you local one.
In order to start using your Stow Box you need to use 3 services: IPFS, Ethereum Client (With Stow SC), Stow-Server
For the quick start we are going to use Infura (IPFS), Ropsten (Ethereum Client), AWS Stow-Server
This is the easiest way to start but if you have time we recommend to take a look at the full installation in which we explain how to run a local version of all of this services which is very helpful for development purposes. (Check the full installation here)
Go to your Metamask and switch to Ropsten Test Network
npm start
Congrats your Stow App is running!!
If you created an app using the Stow Box and you want to request a user to share specific file with you, you can send a URL that will ask the user only for the Encryption Private Key and to sign the transaction in MetaMask.
Replace the following variables in the following URL and send to the owner of that data:
- STOW_BOX_URL
- YOUR_ENCRYPTION_PUBLIC_KEY
- YOUR_ETHEREUM_ADDRESS
- DATA_HASH_YOU_WANT
[STOW_BOX_URL]/permissions?viewerEncyptionPublicKey=[YOUR_ENCRYPTION_PUBLIC_KEY]&viewerEthereumAddress=[YOUR_ETHEREUM_ADDRESS]&dataHash=[DATA_HASH_YOU_WANT]
To learn more about encryption patterns and how Stow uses them, go HERE
In order to create the keys, register a user and upload data to Stow you can use our Stow Faucet HERE
In order to test Stow you can use the following keys. We already uploaded data of 40 different diabetic patients (This is not real data)
Here you can check the Ethereum Addresses of each of the test users, click HERE
In order to decrypt the test files that we uploaded to the contracts, click HERE
In order to share files you have to use the public key of the receiver, to find them click HERE
If you have any questions, check the FAQ's here or ask in any of our channels: