Follow the tutorial on creating a smart contract in my GitHub to set up a backend.
- Add a HelloWorld.sol in contracts.
- Change output directory for contracts
contracts_build_directory: "./client/src/contracts",
in truffle_config.js - $
truffle console --network goerli
(or wherever the contract is to be deployed) - truffle(goerli)>
migrate --reset
- Open a new terminal
- $
npx create-react-app client
cd client