Skip to content

Files

Latest commit

7498f6f · Feb 7, 2022

History

History
64 lines (30 loc) · 1.18 KB

README.md

File metadata and controls

64 lines (30 loc) · 1.18 KB

Project URL

https://road2web3-pfp.surge.sh/

Setup in Local Environment

Clone and cd into directory

git clone https://github.com/garyghayrat/Road2Web3-pfp.git

cd Road2Web3-pfp

npm install

Create a .env file in the root of the project

touch .env

Add the following data to .env

PRIVATE_KEY=<Metamask private key>
POLYGON_URL=<full Alchemy endpoint URL>

Compiling contracts

npx hardhat compile

Deploy contracts locally

npx hardhat run scripts/deploy.js

Deploy to Polygon Mumbai testnet

npx hardhat run scripts/deploy.js --network mumbai

How to run the app and start minting

1. From the root of the project

    cd docs/
    
2. Install the front-end:

    npm install
    
3. Run the frnt-end:

    npm run start

Now you're ready to mint!!

Additional Resources

Faucet: https://faucet.polygon.technology/

Polygon Mumbai testnet RPC setup: https://docs.polygon.technology/docs/develop/metamask/config-polygon-on-metamask/

Open an Alchemy account to acquire an Alchemy Mumbai Polygon: https://www.alchemy.com/