- Install Aptos in your local machine
Download here: https://aptos.dev/cli-tools/aptos-cli-tool/
Note: Our examples are tested on Aptos version 1.0.4
- Setup Env
To set up your environment:
- If you don't have a
.env
file, runnpm run setup
to create one quickly. - If you already have a
.env
file but it's missing theAPTOS_TOKEN_LINKER_ADDRESS
andAPTOS_ADDRESS
variables, copy them from the.
env.example` file.
- Build the Aptos modules
npm ci
npm run build
npm run build-aptos
- Run the
aptos
local network
aptos node run-local-testnet --with-faucet --force-restart
- Run the local server
npm run start