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 start
to start the local chains. - Navigate to the
examples-web
directory. - Run
npm ci
to install dependencies. - Run
npm run setup
to copies the private key and mnemonic from the.env
file at the root directory to the.env
file in theexamples-web
directory. - Run
npm run deploy
to compile all smart contracts, generate types for smart contract functions, and deploy to the local network. - Run
npm run dev
to 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.