Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A decentralized Domain Name Service for Ethereum with a Angular 4 DApp.

Notifications You must be signed in to change notification settings

internet-com/dns-dapp

 
 

Repository files navigation

dns-registry-dapp

Git repo for decentralized DNS on top of Ethereum

written by Hitesh Joshi - [email protected]

Thanks to the good people of Heroku, the app is live at

https://fierce-plains-84557.herokuapp.com/dashboard

What you can you do with the DNS DAapp

  • Reserve a name with as low as 0.1 ether
  • Get the name's price
  • Bid on a name
  • Find the current owner's address
  • Withdraw your bid - if you are outbidden
  • As a owner accept bids and transfer name ownership
  • Send money using names

Tech details

  • Project is developed using Angular 4.
  • Integrated with HD wallet - metamask for signing transactions to the network
  • Metamask is the web3 provider.
  • I have used a private geth node running at http://localhost:8545/
  • Project uses truffle for compiling deploying contracts and uses promisified truffle api for interaction with contracts
  • solidity and js tests are in test folder

Build Steps

From the root folder - contract

  • Download the source
  • npm install
  • truffle compile
  • truffle migrate --network <network_name>
  • truffle test [Optional step]
  • ng build --prod
  • ng serve
  • Note of truffle migrate Since this step deploys the contract to the blockchain. If you are using a private or actual Ethereum blockchain, please make sure that the account you have used in truffle.js is unlocked. I have used my coinbase in truffle.js, so here goes the command.
web3.personal.unlockAccount(eth.coinbase)

Metamask is a dependency for the project

In order to run geth with metamask, please use the flag --rpccorsdomain="chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn

geth --identity "nodeA" --rpccorsdomain "*" --datadir=".\geth_data" -verbosity 6 --port 54259  --rpc --rpcapi "eth,net,web3" --rpcaddr "127.0.0.1" --rpcport 8545 --fast --networkid 15 --nodiscover --mine --minerthreads 1 --rpccorsdomain="chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn

Accompanying Blog https://medium.com/@achiever.hitesh/own-your-identity-in-blockchain-747a91100b39

You can use Ganache or any test net. Screenshots

Scheme

Scheme

Scheme

About

A decentralized Domain Name Service for Ethereum with a Angular 4 DApp.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 49.7%
  • JavaScript 24.9%
  • HTML 21.9%
  • CSS 3.5%