Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BestReads App

Example REY app that lets ebook readers share in the Reputation Network their reading score.

Available live at http://rey-example-bestreads.herokuapp.com.

Requirements

You'll need rey-cli installed in your system.

Configuration

You'll need to set up the environment variables GOODREADS_API_KEY and GOODREADS_API_SECRET with a valid [Goodreads app]https://www.goodreads.com/api. The easiest way is using a .env file.

Usage

Simply start the app with:

docker-compose up

Then, you'll need to register the app's manifest on the running blockchain node with:

rey-cli dev cmd publish-manifest 0x88032398beab20017e61064af3c7c8bd38f4c968 http://localhost:8000/manifest

You'll need to publish the verifier's manifest:

rey-cli dev cmd publish-manifest 0x44f1d336e4fdf189d2dadd963763883582c45312 http://localhost:8082/manifest

You can visit the app at http://localhost:8000.

To read the REY app, add your Metamask private key to the blockchain node:

rey-cli dev cmd add-account <YOUR_METAMASK_PRIVATE_KEY>

Then run:

rey-cli dev cmd read-app 0x88032398beab20017e61064af3c7c8bd38f4c968 <YOUR_ADDRESS> 0x44f1d336e4fdf189d2dadd963763883582c45312

About

Bestreads sample app

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages