AmisUnidEthPayGw

Off-Chain: A Simple Unidirectional Ethereum Payment Channel

Alt Text

Installation

  1. Install Truffle globally.
     npm install -g truffle
    
  2. Install the necessary dependencies.
     npm install
    
  3. Run the development console.
     truffle develop
    
  4. Compile and migrate the smart contracts. Note inside the development console we don’t preface commands with truffle.
     compile
     migrate
    
  5. To build the application for production, use the build command. A production build will be in the build_webpack folder.
     npm run build
    
  6. Run the webpack server for front-end hot reloading (outside the development console). Smart contract changes must be manually recompiled and migrated.
     // Serves the front-end on http://localhost:3000
     npm run start