Skip to content

edsonayllon/Simple-Ethereum-React-Connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

author category tags status twitter
Edson Ayllon
functionality
ethereum
react
solidity
complete

Modular 23-2019

Simple Ethereum React Connenction

A React frontend with an Etherum Smart Contract backend.

1. Preview

Screenshot

2. Getting Started

2.1 Install

Install dependencies for the React Client.

cd client
yarn || npm install

Compile the smart contract.

cd ethereum
truffle develop
> compile

2.2 Run

Run the client. In ./client:

yarn start || npm run start

Run a local Etheruem node. Inside ./ethereum

truffle develop
> migrate

Inside truffle, you should see a list of private keys, in addition to a localhost address. This should default to port 9546.

To interact with the smart contract, take that address, http://localhost:9546, and add it to Metamask via Networks as a custom RPC.

Within truffle, a contract address for the SimpleStorage contract should appear after running migrate. Enter that contract address as the contract address within ./client/src/App.js.

About

React client interfaces with a simple Ethereum smart contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published