aiolos404 / ethnotary

Document notarization on the Ethereum blockchain.

Home Page:https://lab.miguelmota.com/ethnotary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


ethnotary


Document notarization on the Ethereum blockchain.

Demo

https://lab.miguelmota.com/ethnotary

Architecture

Test

truffle test

Development

  1. Clone repository:

    git clone git@github.com:miguelmota/ethnotary.git
    cd ethnotary
  2. Install dependencies:

    npm install
  3. Start ganache in a seperate terminal:

    ganche-cli
  4. Deploy contract to local testnet:

    truffle deploy
  5. Start frontend watcher in another terminal:

    npm run watch:client
  6. Update the smart contract address in public/js/main.js

  7. Start frontend server:

    npm run serve
  8. Visit http://localhost:3000/

  9. Connect MetaMask to network http://localhost:8545

  10. Notarize a document!

Deployment

  1. Create a .env to export your mnemonic or private key:

    MNEMONIC='YOU_MNEMONIC_GOES_HERE'
    # or
    PRIVATE_KEY='YOU_PRIVATE_KEY_GOES_HERE'
  2. Run truffle deploy using the desired network:

    truffle deploy --network=rinkeby
  3. Update the smart contract address in public/js/main.js

  4. Rebuild frontend scripts:

    npm run build:client
  5. Deploy public/ frontend to your server.

  6. Notarize a document!

License

MIT

About

Document notarization on the Ethereum blockchain.

https://lab.miguelmota.com/ethnotary

License:MIT License


Languages

Language:JavaScript 68.9%Language:HTML 21.0%Language:CSS 9.1%Language:Makefile 1.0%