This repository contains a sample project that you can use as the starting point for your Ethereum project. It's also a great fit for learning the basics of smart contract development.
The first things you need to do are cloning this repository and installing its dependencies:
git clone https://github.com/WhiteMatrixTech/planet.git
cd planet
yarn install
Once installed, let's run Hardhat's unit test:
yarn test
Then, prepare your account to deploy contract, set your bsc testnet account privateKey in secrets.json:
{
"privateKey": "XXXXX"
}
Then, go to the repository's root folder and run this to deploy your contract:
yarn deploy:testnet
Finally, we can run the frontend with:
yarn start:webapp
Your environment will have everything you need to build a Dapp powered by Hardhat and React.
- Hardhat: An Ethereum development task runner and testing network.
- Mocha: A JavaScript test runner.
- Chai: A JavaScript assertion library.
- ethers.js: A JavaScript library for interacting with Ethereum.
- Waffle: To have Ethereum-specific Chai assertions/mathers.
- A sample frontend/Dapp: A Dapp which uses Create React App.
Happy buidling!