Document notarization on the Ethereum blockchain.
https://lab.miguelmota.com/ethnotary
truffle test
-
Clone repository:
git clone git@github.com:miguelmota/ethnotary.git cd ethnotary
-
Install dependencies:
npm install
-
Start ganache in a seperate terminal:
ganche-cli
-
Deploy contract to local testnet:
truffle deploy
-
Start frontend watcher in another terminal:
npm run watch:client
-
Update the smart contract address in
public/js/main.js
-
Start frontend server:
npm run serve
-
Visit http://localhost:3000/
-
Connect MetaMask to network http://localhost:8545
-
Notarize a document!
-
Create a
.env
to export your mnemonic or private key:MNEMONIC='YOU_MNEMONIC_GOES_HERE' # or PRIVATE_KEY='YOU_PRIVATE_KEY_GOES_HERE'
-
Run truffle deploy using the desired network:
truffle deploy --network=rinkeby
-
Update the smart contract address in
public/js/main.js
-
Rebuild frontend scripts:
npm run build:client
-
Deploy
public/
frontend to your server. -
Notarize a document!