Example app for CryptoKitties clone tutorial
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-cli
Then install contract dependencies:
yarn install
To install frontend dependencies go to front
folder and run yarn install
from there:
cd front
yarn install
First make sure that local ethereum node is running. Execute:
ganache-cli -p 7545
Now you can compile and deploy contracts:
truffle compile && truffle migrate
Run contract tests:
truffle test
Switch to front
directory and run frontend tests as well:
cd front
yarn test
Tests should pass.
Make sure that you have local ethereum node running:
ganache-cli -p 7545
And contracts deployed:
truffle compile && truffle migrate
If everything is fine run the frontend:
cd front
yarn start
You should see the following:
You can remove all minted tokens by migrating your contract again:
truffle migrate --reset