- yarn init
- yarn add --dev ethers dotenv solc @openzeppelin/contracts fs-extra
- Create solidity file. BasicNft.sol
- Create deployment file. deploy.js
- Compile the solidity file
yarn solcjs --bin --abi --include-path node_modules/ --base-path . -o ./artifacts/ BasicNft.sol
- Update the following in the .env file:
- Private Key of wallet from which deployment will be done.
- Alchemy node RPC. Get it from https://alchemy.com/?r=Dk4NTc0NjA4MzUyM
- Deploy using the script by running
node ./deploy.js