A decentralized application(dApp) for minting text-based generated image NFTs.
Note: Instructions are for testing the dApp on the Rinkeby testnet.
- Clone the repository:
git clone https://github.com/Joshua-Oladeji/Heavenlywords.git
- Change directory to the cloned folder:
cd Heavenlywords
- Install dependencies for client(frontend):
cd nft-website
npm install
- Install dependencies for contract deployment:
cd ../nft-contract
npm install
- Create a .env file in the nft-contract directory and add the following:
API_URL = "<< your alchemy HTTP key >>"
PRIVATE_KEY = "<< private key of contract deployer >>"
- Create an app on Alchemy(rinkeby network) and copy the HTTP link
- Paste the link as the value of API_URL variable in the .env file
- Also paste the private key(of the address that'll deploy the contract) in the .env file
- Run the follwing to compile and deploy the contract:
npx hardhat compile
npx hardhat run scripts/deploy.js --network rinkeby
- Copy the contract address displayed on the terminal
- Change directory to client:
cd ../nft-website
- Create a .env file in the current directory and add the following:
REACT_APP_ALCHEMY_URL = ""
REACT_APP_CONTRACT_ADDRESS = ""
- Fill the variables with their values
- Start the development server:
npm run start
- The site would be live on http://localhost:3000/
- Enjoy ✨