https://github.com/linux08/udacity-star-notary
https://github.com/linux08/udacity-star-notary
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/linux08/udacity-star-notary
- Owner: linux08
- License: other
- Created: 2022-10-19T03:22:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-19T21:10:23.000Z (over 3 years ago)
- Last Synced: 2025-01-15T11:15:13.604Z (about 1 year ago)
- Language: JavaScript
- Size: 8.71 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
**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.
### Dependencies
For this project, you will need to have:
1. **Node and NPM** installed - NPM is distributed with [Node.js](https://www.npmjs.com/get-npm)
```bash
# Check Node version
node -v
# Check NPM version
npm -v
```
2. **Truffle v5.X.X** - A development framework for Ethereum.
```bash
# Unsinstall any previous version
npm uninstall -g truffle
# Install
npm install -g truffle
# Specify a particular version
npm install -g truffle@5.0.2
# Verify the version
truffle version
```
2. **Metamask: 5.3.1** - If you need to update Metamask just delete your Metamask extension and install it again.
3. [Ganache](https://www.trufflesuite.com/ganache) - Make sure that your Ganache and Truffle configuration file have the same port.
4. **Other mandatory packages**:
```bash
cd app
# install packages
npm install --save openzeppelin-solidity@2.3
npm install --save truffle-hdwallet-provider@1.0.17
npm install webpack-dev-server -g
npm install web3
```
### Run the application
1. Clean the frontend
```bash
cd app
# Remove the node_modules
# remove packages
rm -rf node_modules
# clean cache
npm cache clean
rm package-lock.json
# initialize npm (you can accept defaults)
npm init
# install all modules listed as dependencies in package.json
npm install
```
2. Start Truffle by running
```bash
# 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
```
3. Frontend - Once you are ready to start your frontend, run the following from the app folder:
```bash
cd app
npm run dev
```
---
## Versions
| Package | Version |
|:-------:|:-------------|
|Truffle| v5.5.29 (core: 5.5.29) |
|Solidity| 0.6.2 (solc-js) |
|Node| v12.22.12 |
|Web3.js| v1.8.0 |
### Contract Address
contract address: 0xe694a0d411569945052192b5c92c9c2366443eea
### Token Address
https://goerli.etherscan.io/token/0xe694a0d411569945052192b5c92c9c2366443eea