PROJECT: Decentralized Star Notary Service Project - For this project, you will create a DApp by adding functionality with your smart contract and deploy it on the public testnet.
- ERC-721 Token Name: Udacity Star Token
- ERC-721 Token Symbol: UST
- Token address on the Rinkeby network: https://rinkeby.etherscan.io/address/0xb4de1c1f25d5a660992fb446d163c69ef7b54e81
For this project, you will need to have:
- Node and NPM installed - NPM is distributed with Node.js
# Check Node version
node -v
# Check NPM version
npm -v
- Truffle v5.4.5 - A development framework for Ethereum.
# Unsinstall any previous version
npm uninstall -g truffle
# Install
npm install -g truffle
# Specify a particular version
npm install -g [email protected]
# Verify the version
truffle version
-
Metamask: 10.0.3
-
Ganache - Make sure that your Ganache and Truffle configuration file have the same port.
-
Other mandatory packages:
cd app
# install packages
npm install --save [email protected]
npm install --save [email protected]
npm install webpack-dev-server -g
npm install web3
- Install dependencies
cd app
# install all modules listed as dependencies in package.json
npm install
- Start Truffle by running
# For starting the development console
truffle develop
# truffle console
# For compiling the contract, inside the development console, run:
compile
# For migrating the contract to the locally running Ethereum network, inside the development console
migrate --reset
# For running unit tests the contract, inside the development console, run:
test
- Frontend
cd app
npm run dev