This repo is an example for my blog series about non-fungible token, where we were doing CryptoKitties clone.
The example is greatly simplified and we don't have genetic algorythms or any algorythms for breeding.
The final application will look somewhat like this:
First install required dependencies:
You'll need local ethereum node, I recommend ganache-cli. You can install it from npm.
npm install -g ganache-cliThen install contract dependencies:
yarn install
To install frontend dependencies go to front folder and run yarn install from there:
cd front
yarn installFirst make sure that local ethereum node is running. Execute:
ganache-cli -p 7545Now you can compile and deploy contracts:
truffle compile && truffle migrateRun contract tests:
truffle testSwitch to front directory and run frontend tests as well:
cd front
yarn testTests should pass.
Make sure that you have local ethereum node running:
ganache-cli -p 7545And contracts deployed:
truffle compile && truffle migrateIf everything is fine – run the frontend:
cd front
yarn startYou should see the following:
You can remove all minted tokens by migrating your contract again:
truffle migrate --reset
