This demonstrates how you can connect to OpenAI to tell a story about an NFT based on that NFT's traits.
Steps:
- Create your Infura Account.
- Create your openAI Account.
- Choose Ethereum Mainnet.
- Create a .env file in your project folder with the following attributes, and populate the keys.
OPENAI_API_KEY=
INFURA_API_KEY=
INFURA_API_KEY_SECRET=
WALLET_PUBLIC_ADDRESS=
WALLET_PRIVATE_KEY= - In a terminal, browse to \back-end folder and execute the following:
npm install
npm start - In another terminal, browse to \front-end folder and type the following:
start index.html