nigeon / uumm

Decentralized meritocracy on Ethereum

Home Page:https://medium.com/@xavivives/broken-meritocracy-74c584f62b85

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React, Redux, Truffle, and Material-UI for bootstrapping a Dapp

In addition to Webpack and React, this box adds: React-Router, Redux and Material-UI for easy skinning of a Dapp.

Installation

  1. Install truffle and an ethereum client. For local development, try EthereumJS TestRPC.

    npm install -g truffle // Version 3.0.5+ required.
    npm install -g ethereumjs-testrpc
  2. Compile and migrate the contracts.

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

    npm run start
  4. Jest is included for testing React components and Truffle's own suite is incldued for smart contracts. Be sure you've compile your contracts before running jest, or you'll receive some file not found errors.

    // Runs Jest for component tests.
    npm run test
    
    // Runs Truffle's test suite for smart contract tests.
    truffle test
  5. To build the application for production, use the build command. A production build will be in the /dist folder.

    npm run build

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.

  • Where is my production build?

    The production build will be in the /dist folder. This is because Truffle outputs contract compilations to the build folder.

About

Decentralized meritocracy on Ethereum

https://medium.com/@xavivives/broken-meritocracy-74c584f62b85


Languages

Language:JavaScript 92.4%Language:CSS 5.8%Language:HTML 1.8%