There are two modules in this repo:
ruby-api- The Ruby API Server;ruby-ui- The Ruby Frontend;
# Install Rust
curl --tlsv1.2 https://sh.rustup.rs -sSf | sh
# Build the project
cargo buildOpen three terminals to run the following commands respectively and keep them open until the end.
- Build Ruby API Service
cd ruby-api
cargo build --release- Run Authority API Service
./target/release/authority-apiAuthority API Service is running at http://localhost:3030
- Run Data Owner API Service
./target/release/owner-apiData Owner API Service is running at http://localhost:3035
- Run Data Purchaser API Service
./target/release/purchaser-apiData Purchaser API Service is running at http://localhost:3031
Ruby invokes zeropool to perform zero-knowledge proof verification. You need to run a local node before moving to the next step.
The instruction on how to run a zeropool node can be found in here
- Environment setup
- Build and Run
To build and connect to the running dev node, execute:
cd ruby-ui
npm i
npm run startAccess the Ruby Frontend via http://localhost:3000
Finally, you can refer to the OPERATIONS document to practice and verify the function of Ruby Protocol.