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.jswith your own configuration. - Run
npm installand thennode generate-keys.jsto 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.jsonand./celer_client_mac -config profile.json -port 20080 -keystore provider.json. When prompted for password, enter123456. Run./celer_client_linuxfor Linux instead. - Run
node index.jsto launch node client, which will trigger state channel payment and monitor service status. - Go to dashboard, run
npm install & npm startto launch a simple statistics dashboard.