First, deploy the contract server:
- Add your metamask mnemonic to .env.
- Deploy contract to fantomtestnet
npx hardhat run scripts/deploy.js --network fantomtest
- Copy the contract address to .env
Then, run the development server:
npm run start
Open http://localhost:3000 with your browser to see the result.