Skip to content

Bank dapp with demo client in react and the smart contract written with Solidity. Ethereum private network is ran with truffle

License

Notifications You must be signed in to change notification settings

NJohansen/bank_dapp_react_smart_contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A demo of a Bank DApp written with Solidity and React

It is a small bank application with balance information, deposit and withdrawal functionality. The React application uses web3 to communicate with the private ethereum network.

DApp image

Installation

Run the development console. I use truffle for this.

truffle develop

Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle.

compile
migrate

In the client directory, we run the React app. Smart contract changes must be manually recompiled and migrated.

// in another terminal (i.e. not in the truffle develop prompt)

cd client
npm run start

There are tests for the minting functionality. Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.

// inside the truffle development console.

test

// outside the development console..

truffle test

Feel free to use it.

About

Bank dapp with demo client in react and the smart contract written with Solidity. Ethereum private network is ran with truffle

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published