-
Notifications
You must be signed in to change notification settings - Fork 0
/
allcodesworkflow.txt
39 lines (20 loc) · 1013 Bytes
/
allcodesworkflow.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
create "client" and "smart_contract" folders under root
npm create vite@latest
create "components" under "src" for Navbar, Footer, Loader, and website sections and index.js for routing export
install tailwind
install any dependencies/packages
build the front-end
cd client
npm init -y
npm install hardhat
npx hardhat, select "Javascript" and yes, yes
npm install --save-dev "hardhat@^2.19.0" "@nomicfoundation/hardhat-toolbox@^3.0.0" ethers chai
(make sure you install stable version of ethers and other packages, I installed npm i -S [email protected] and some errors were gone)
(also, a new updated is that you only need to install hardhat and hardhat-toolbox, hardhat-toolbox contains all needed packages like chai, waffle, etc. for testing)
npm install --save-dev @nomicfoundation/hardhat-toolbox
npx hardhat compile
npx hardhat test(this should test the default smart contract)
npx hardhat run scripts/deploy.js --network goerli
Deployment steps:
1) under client folder run "npm run build"
2)