Skip to content

This demonstrates how you can connect to OpenAI to tell a story about an NFT based on that NFT's traits.

License

Notifications You must be signed in to change notification settings

TravisLeeRichardson/NftStory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NftStory

This demonstrates how you can connect to OpenAI to tell a story about an NFT based on that NFT's traits.

Steps:

  1. Create your Infura Account.
  2. Create your openAI Account.
  3. Choose Ethereum Mainnet.
  4. 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=

  5. In a terminal, browse to \back-end folder and execute the following:

    npm install
    npm start
  6. In another terminal, browse to \front-end folder and type the following:

    start index.html