I've put together using the following technologies:
- Ethereum Javascript API (Web3.js) 1.0-beta
- Truffle
- Parity
- React Redux Universal Hot Example (implements React, React Router, Babel, Webpack, Redux, Redux Dev Tools, React Router Redux, ESLint, and more)
This starter repository for building react/redux dapps uses the latest bleeding-edge Ethereum development technologies. Please note that the repository is still under development; I will be adding additional smart-contracts/UI examples.
Download the latest verion of Parity here.
Also ensure that you have the latest verion of Truffle installed globally:
npm install -g truffle
Finally install all package dependencies:
npm install
Run all of the following commands inside the project directory.
parity --chain dev --ws-origins "*"
Note: we set --ws-origins
so that we can use websockets to subscribe to blockchain events.
truffle compile && truffle migrate
NOTE: after running open parity (at http://127.0.0.1:8180/
) in a browser and confirm all of the transactions to complete the migration.
npm run dev
Planned future additions:
- create page showing example use of
web3.eth.getStorageAt
method onStorageExample
smart-contract - make MetaCoin into a ERC20 standards-compliant token
- add example oracle smart-contract example that interacts with external data
- consider implementing
truffle-contract
for better Ethereum contract abstraction