andresaaap / udacity-bcnd-ethereum-secret-messenger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ethereum Secret Messenger

Udacity Blockchain Nanodegree

Description

This software is a Dapp that creates messages in the ethereum rinkeby network

Prerequisites

Ganache environment

How to install?

  1. Download the project from this github repository

  2. Start ganache

  3. Deploy the contract to ganache using remix IDE

  4. Set the contract address

contract address

  1. Set the account address that you are going to use

account address

How to run?

  1. Host the dapp locally with http-server. First, run npm i. Then, open the terminal and change directory to the project. Then, run this command to host the dapp ./node_modules/http-server/bin/http-server PATH_TO_YOUR_PROJECT. Then, open in the browser http://127.0.0.1:8080

  2. Log in metamask

  3. Open the website in Chrome

  4. Connect metamask to website: connect to metamask

connect to metamask step 2

connect to metamask step 3

  1. Write the message

dapp

  1. Click on "set secret message"

confirm transaction

Rinkeby environment

How to install?

  1. Download the project from this github repository

  2. Connect to metamask (rinkeby) and make sure that it has funds for rinkeby

  3. Compile the contract using remix IDE

  4. Deploy the contract to rinkeby using remix IDE. Make sure that Environment is set to Injected Web3

deploy

deploy confirm

  1. Set the contract address

contract address

  1. Set the account address that you are going to use

account address

How to run?

  1. Host the dapp locally with http-server. First, run npm i. Then, open the terminal and change directory to the project. Then, run this command to host the dapp ./node_modules/http-server/bin/http-server PATH_TO_YOUR_PROJECT. Then, open in the browser http://127.0.0.1:8080

  2. Log in metamask

  3. Open the website in Chrome

  4. Write the message

dapp

  1. Click on "set secret message"

confirm transaction

About


Languages

Language:HTML 81.9%Language:CSS 12.1%Language:Solidity 6.0%