Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/codeamt/ethtokenminter
- Owner: codeamt
- Created: 2018-06-29T08:02:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-02T20:51:27.000Z (over 6 years ago)
- Last Synced: 2023-10-20T04:52:16.633Z (about 1 year ago)
- Language: JavaScript
- Size: 1.64 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```