Skip to content

tannertanner1/simple-storage

Repository files navigation

  1. alchemy: connect to blockchain
  2. hardhat: deploy smart contract
  3. ethers: call smart contract
  4. metamask: connect to wallet
  5. fleek: host static website

cd && git clone https://github.com/tannertanner1/simple-storage.git
cd simple-storage # && code .
npm i
or
# Create a new repository: https://github.com/new

mkdir <dir> && cd <dir> # && code .
npm init -y

git init
git remote add origin https://github.com/<user>/<dir>.git
git add . && git commit -m "" && git push -u origin main
npm i [email protected] [email protected] -S
touch README.md .env.example .env .gitignore
npm i [email protected] @nomicfoundation/[email protected] -D
npx hardhat # Create an empty hardhat.config.js

mkdir contracts && touch contracts/SimpleStorage.sol
npx hardhat compile # Compiled 1 Solidity file successfully

mkdir test && touch test/SimpleStorage.js
npx hardhat test # 2 passing

mkdir scripts && touch scripts/deploy.js
npx hardhat run scripts/deploy.js --network sepolia
touch index.html # index.js index.css
git add . && git commit -m "" && git push # ga && gc "" && gp

# Add New Site: https://app.fleek.co

dependencies
extensions
references

https://www.alchemy.com

https://docs.openzeppelin.com/learn/deploying-and-interacting

https://hardhat.org/tutorial/testing-contracts

https://docs.metamask.io/guide/rpc-api.html

https://docs.fleek.co/hosting/site-deployment/#site-deployment