npm install
While running geth locally or while just trying out how deployment of smart contracts work, you make sure of this
-
Run geth with this flag
--allow-insecure-unlock
, so you can be able to unlock your wallet in httpgeth --rinkeby --rpc --rpcapi="eth,net,web3,personal,txpool" --syncmode=light --allow-insecure-unlock
-
Then run in a different terminal
geth attach http://127.0.0.1:8545
when the terminal prompts you, typepersonal.unlockAccount('address', 'password', 'duration')
-
On another terminal cd into the project root and run
node deploy.js