Git Product home page Git Product logo

stow-box's Introduction

Stow, Truffle Box starter kit

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.

Getting Started

First you have to install Truffle

npm install -g truffle

Unbox (This will work only when the repo will be public, for now skip this)

Create a directory for your project and download the truffle box.

mkdir my_stow_app
cd my_stow_app
truffle unbox ConsenSys/stow-box

Download the Kit

git clone [email protected]:ConsenSys/stow-box.git
cd stow-box

Install the dependencies:

npm install

Metamask

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/

Run

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.

Services Needed

In order to start using your Stow Box you need to use 3 services: IPFS, Ethereum Client (With Stow SC), Stow-Server

Quick Start

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

Run

npm start

Congrats your Stow App is running!!

Request User to Share file

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]

Encryption Keys

To learn more about encryption patterns and how Stow uses them, go HERE

Create User and Upload Data

In order to create the keys, register a user and upload data to Stow you can use our Stow Faucet HERE

Test Users

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)

Ethereum Addresses

Here you can check the Ethereum Addresses of each of the test users, click HERE

Encryption Private Keys (These are used to decrypt data)

In order to decrypt the test files that we uploaded to the contracts, click HERE

Encryption Public Key (These are used to share data)

In order to share files you have to use the public key of the receiver, to find them click HERE

FAQ

If you have any questions, check the FAQ's here or ask in any of our channels:

stow-box's People

Contributors

anujshah108 avatar daniel-lanciana avatar godfreyhobbs avatar letubert avatar maxblaushild avatar sirhamy avatar tesla809 avatar vrotmanh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.