A new payment and dispute solution for cloud service. Users are able to make micro payment for the service they actually use by minutes. It also uses on-chain oracle to monitor the service status. If the service is always on within a minute, user will pay the service provider. If the service goes down, user does not need to pay the service provider, and the service provider will pay the user instead for its lost based on SLA.
- Update
config.js
with your own configuration. - Run
npm install
and thennode generate-keys.js
to have your key store generated. - Go to celer directory, and start two celer client, one for user and one for service provider. To start celer client, run
./celer_client_mac -config profile.json -port 29979 -keystore user.json
and./celer_client_mac -config profile.json -port 20080 -keystore provider.json
. When prompted for password, enter123456
. Run./celer_client_linux
for Linux instead. - Run
node index.js
to launch node client, which will trigger state channel payment and monitor service status. - Go to dashboard, run
npm install & npm start
to launch a simple statistics dashboard.