https://github.com/satansdeer/gradient-token
Example app for CryptoKitties clone tutorial
https://github.com/satansdeer/gradient-token
Last synced: about 1 month ago
JSON representation
Example app for CryptoKitties clone tutorial
- Host: GitHub
- URL: https://github.com/satansdeer/gradient-token
- Owner: satansdeer
- Created: 2018-04-02T14:08:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-04T00:28:19.000Z (over 3 years ago)
- Last Synced: 2025-05-05T20:09:51.076Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://maksimivanov.com/posts/gradient-coin-tutorial
- Size: 334 KB
- Stars: 26
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gradient Token Tutorial
This repo is an example for [my blog](http://maksimivanov.com) 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:
## Contents:
* [Part 1 - Creating the token](http://maksimivanov.com/posts/gradient-coin-tutorial)
* [Part 2 - Adding auction](http://maksimivanov.com/posts/gradient-coin-tutorial-part-2)
* [Part 3 - Adding basic frontend](http://maksimivanov.com/posts/gradient-coin-tutorial-part-3)## How To Install Dependencies
First install required dependencies:
You'll need local ethereum node, I recommend `ganache-cli`. You can install it from `npm`.
```sh
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:
```sh
cd front
yarn install
```## How To Test
First make sure that local ethereum node is running. Execute:
```sh
ganache-cli -p 7545
```Now you can compile and deploy contracts:
```sh
truffle compile && truffle migrate
```Run contract tests:
```sh
truffle test
```Switch to `front` directory and run frontend tests as well:
```sh
cd front
yarn test
```Tests should pass.
## How To Run
Make sure that you have local ethereum node running:
```sh
ganache-cli -p 7545
```And contracts deployed:
```sh
truffle compile && truffle migrate
```If everything is fine – run the frontend:
```sh
cd front
yarn start
```You should see the following:
You can remove all minted tokens by migrating your contract again:
```sh
truffle migrate --reset
```