DApp example of deploying and interacting with Solidity smart contract using Rust.
Clone the project.
git clone https://github.com/tr1sm0s1n/rust-dapp-example.git
cd rust-dapp-example
Install Rust.
make install-rust
Install Foundry.
make install-foundry
Test smart contract.
make test
Run Anvil.
make anvil
Compile smart contract.
make compile
Deploy smart contract.
make deploy
Run the application.
make run
Listen for events (new terminal).
make listen
Issue a certificate (new terminal).
curl -X POST http://localhost:3000/issue -H "Content-Type: application/json" -d '{"id": "101", "name": "Keith", "course": "ETH-Rust", "grade": "A", "date": "06-06-24"}'
Fetch a certificate.
curl http://localhost:3000/fetch/101
Click here.
Click here.
Click here.