A working dApp example, created using bits and pieces of https://docs.aztec.network/dev_docs/tutorials/writing_dapp/main. It's not cleaned up and is only meant as an example, to see how difference pieces work together.
First, spin up the Aztec PXE through Docker.
/bin/bash -c "$(curl -fsSL 'https://sandbox.aztec.network')"
OR
cd ~/.aztec && docker-compose up
aztec-cli compile contracts/token
Deploy token contract:
node src/deploy.mjs
Add the address of the deployed contract to addresses.json
.
Spin up node backend:
node src/index.mjs
This will run on localhost:3001.
cd my-react-app
npm start