You can see a demo of this repo on Replit : https://replit.com/@thatguyintech/BuyMeACoffee-Solidity-DeFi-Tipping-app
npm install
to install dependencies
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Everything you need is inside pages/index.js
.
To customize the website to load info from your own contract, change the following:
- Update
contractAddress
inpages/index.js
to your own BuyMeACoffee contract on the Goerli testnet. - Update
utils/BuyMeACoffee.json
to match the json artifact for your contract after compilation. - Update the name and footer text in
pages/index.js
to your own name and info.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.