Running the app
-
install your dependencies,
open a new command prompt
yarn install
-
start a local hardhat node (chain)
anvil
-
Run the app,
open a new command prompt terminal
# in a new terminal # compile your contracts yarn compile # deploy your hardhat contracts yarn deploy # start the next-js app yarn start
-
Open http://localhost:3000 to see your front end
Make sure you install foundry
-
Make sure you install foundry first. Use
curl -L https://foundry.paradigm.xyz | bash
to install foundryupYou can see more details here. https://book.getfoundry.sh/getting-started/installation
-
Run
yarn install:foundry
to install or update foundry in the right folder. It will also run forge install automatically with the right context.
You can use foundry commands with the right context
yarn forge
yarn anvil
yarn cast