This is a beginner front-end based solidity dapp that lets you connect to a metamask wallet and transact tokens.
This contract is built using the following :
- Next.js
- Solidity
- Hardhat
Using these, this app lets you deploy a solidity smart contract locally which you can interact with using a front end built on next.js.
The app showcases a modern UI and improved functionality and is based on the starter project SCM-Starter.
First of all you need to clone this github repository to your machine. After cloning the repo, you will want to do the following to get the code running on your computer.
- Inside the project directory, in the terminal type: npm i
- Open two additional terminals in your VS code
- In the second terminal type: npx hardhat node
- In the third terminal, type: npx hardhat run --network localhost scripts/deploy.js
- Back in the first terminal, type npm run dev to launch the front-end.
After this, the project will be running on your localhost. Typically at http://localhost:3000/
Make sure to connect your metamask wallet to the owner account of your deployed hardhat node.
This project is licensed under the MIT License - see the LICENSE.md file for details