Onchain AI Oracle powered chat and image generator
Start by cloning this repository code.
cd to the root directory of the project and run yarn install to get smart-contracts back-end dependencies ready.
Configure the file .env.local inside the root directory properly.
cd to the folder oao-nextjs-dapp and run yarn install to get front-end dependencies set.
Then, configure the .env.local file inside the oao-nextjs-dapp directory properly.
Back to the root folder, you can run npx hardhat compile to compile the contracts.
Still inside the root folder, you can run npx hardhat ignition deploy ./ignition/modules/AIOracle.ts --network to deploy the AIOracle to your network chain.
If you are interested in deploying your own Optimism L2 Rollup Testnet, head to https://docs.optimism.io/builders/chain-operators/tutorials/create-l2-rollup for steps to follow.
Next, cd to the folder oao-nextjs-dapp and run yarn dev to start your front-end.
Finally, you can interact with the onChain AI models.
Onchain AI Oracle powered chat and image generator by GAC DEV
More about the web3 back-end framework documentation can be found at https://github.com/ora-io/OAO