Discover a comprehensive collection of end-to-end examples in the examples-web section. Conveniently, all of the examples have been packaged together, making it simple to set up and run them all in one place.
Before you begin, make sure you've set up your environment variables at the root directory. See here for instructions.
- Navigate to the root directory.
- Run
npm run startto start the local chains. - Navigate to the
examples-webdirectory. - Run
npm cito install dependencies. - Run
npm run setupto copies the private key and mnemonic from the.envfile at the root directory to the.envfile in theexamples-webdirectory. - Run
npm run deployto compile all smart contracts, generate types for smart contract functions, and deploy to the local network. - Run
npm run devto start the web application server. - Open http://localhost:3000 in your web browser to view the examples demo.
You should see the website looks like image below.
