Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

miguelmota/ethnotary

Repository files navigation


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