This repo demonstrates on how to use Hardhat, EthersJs to develop, test and deploy smart contract on both local network(hardhat) and testnets.
This repo has simple contract with name FundME.sol and the tests inside test folder (unit -> tests for local network) & (staging -> tests for testnets).
This is simple contract works like an crowd funding application. Where it accepts funding from anyone and owner can only withdraw funds whenever he/she wants.
Before runnig this project make sure you install below Prerequisites.
- Nodejs
- Npm
- Git
- Get a free API Key at https://www.alchemy.com/
- Clone the repo
https://github.com/SaikrishnaReddy1919/hardhat_fund_me.git
- Install NPM packages
yarn install
- Add environment variables in .env file. For sample variables/env file -> look at .env.sample in project root folder.
* Check the commands under `scripts` in `package.json` file.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request