Skip to content

Simple blockchain game on Ethereum that allows players to buy and breed digital NFTs

Notifications You must be signed in to change notification settings

KennieHarold/dwarfity-nft

Repository files navigation

Welcome to my first NFT project: Dwarfity-NFT

This is just a simple NFT breeding DApp which uses a simple crossover gene mixing algorithm using the parent's genome to generate a new digital art NFT.

Project Setup

After cloning the repo, run the following command to install the project dependencies:

npm install

Then compile and deploy the smart contract to ganache, run the following command:

npm run ganache:deploy

To start the node server, run the following command:

npm run node:start

To start the react app, run the following command:

npm start

Make sure you mint initial NFTs in order you can buy them and used it for breeding, just create a fixtures folder and a sample data for the NFT's metadata (see /sample-data/genDwarvesData.js) and run the following command:

npm run ganache:mintgen

Required values for the .env file:

DWARFITY_CORE_ADDRESS=
DB_CONNECTION_STRING=
NODE_PORT=
NODE_ENVIRONMENT=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
SECRET_KEY=
REACT_APP_ENVIRONMENT=
REACT_APP_DWARFITY_CORE_ADDRESS=

Third party apps used

MongoDB - For storing NFT's metadata

Cloudinary - For storing NFT's image file

Ganache - Ethereum based locat test network