/Heavenlywords

A dApp for minting text-based generated image NFTs. Implemented on the ethereum network.

Primary LanguageJavaScript

Heavenlywords

A decentralized application(dApp) for minting text-based generated image NFTs.

Heavenlywords screenshot

Installation

Note: Instructions are for testing the dApp on the Rinkeby testnet.

Setup

  • 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

Contract deployment

  • 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

Frontend

  • 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

Technologies