This tutorial walks you through setting up a simple React project using TypeScript and Vite. You'll integrate the TrustVC library to see how transactions and endorsement chain works of a W3C Verifiable Credential (VC) or OpenAttestation document.
Make sure you have the following installed:
- Node.js (v18.x or higher)
- npm (v6.x or higher)
If you don't have them, you can download and install them from Node.js official website.
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/TradeTrust/transferability-tutorial.git cd transferability-tutorial
-
Install dependencies:
Use npm to install the necessary dependencies:
npm install
-
Update environment Add and update the .env file with infura api key You can update the chain you want to test by updating the RPC url in app.js.
-
Run the development server:
To start the project locally, run:
npm run dev
You will have to sign the document to generate the Token ID and mint the token as well to see the endorsement chain.