/blockchain

Smart Contract React Redux - Total D App

Primary LanguageJavaScript

Block Chain with React Redux

with Docker it

React, Redux, Truffle, and Material-UI Dapp

Installation

  1. Install node.js (version 8.9.x)

  2. Install webpack globally

    npm install -g webpack
    npm install -g webpack-cli
    
  3. Install truffle and Ganache, both available from Truffle.

  4. Compile and migrate the contracts.

    truffle compile
    truffle migrate --reset
  5. Run the webpack server for front-end hot reloading. For now, smart contract changes must be manually recompiled and migrated.

    npm start

Docker

  1. Build the docker container.

    docker build -t etherslist .
    
  2. Launch the docker container.

    docker run -p 3000:3000 etherslist:latest
    

3 Remove all container docker rm $(docker ps -a -q)

  1. Browse to http://localhost:3000 docker rmi $(docker images -q)

FAQ

  • Why is there both a truffle.js file and a truffle-config.js file?

    Truffle requires the truffle.js file be named truffle-config on Windows machines. Feel free to delete the file that doesn't correspond to your platform.