Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codeamt/ethtokenminter

A truffle-react dApp demonstrating non-fungible assets managed on the blockchain.
https://github.com/codeamt/ethtokenminter

Last synced: about 2 months ago
JSON representation

A truffle-react dApp demonstrating non-fungible assets managed on the blockchain.

Awesome Lists containing this project

README

        

ethTokenMinter

This is a simple React.js decentralized app (dApp) to demonstrate token minting/the creation of Non-Fungible Tokens on the Ethereum blockchain. The dApp utilizes Truffle, Open-Zeppelin, Metamask and Ganache to deploy and test contracts:



## Demo on Ganache or Ropsten Network



To demo this project, you will need Ganache or a local blockchain running. To test on the Ropsten Network, install the Metamask browser extension.

## Running and Testing
Once Metamask and Ganache are installed and running:

1. Clone this repo:

```
git clone https://github.com/codeamt/ethTokenMinter.git
```

2. Install dependencies:

(Contract development dependencies)

```
yarn install
cd front && yarn install
```

(Optionally, you can use npm)

3. Compile and Migrate Contracts:

```
truffle console

//for local blockchain or ganache
compile
migrate

//or for ropsten network
compile --network ropsten
migrate --network ropsten
```


Migrating the contracts will populate a json file addresses.json in the frontend for the react app to access.



4. Run the dapp

(from the front directory)

```
//if you haven't already
cd front

//then
yarn start
```

5. Optional: Running Tests

This project uses Chai and Mocha for contract testing along with Jest to test react ui components.

(For backend tests)

```
cd ..
truffle test
```

(For frontend tests)

```
cd front
yarn test
```