Giter Site home page Giter Site logo

react_truffle_starter's Introduction

Overview

This project is a boilerplate to quickly get started building DApps (Distributed Applications).

Tools used:

React (Based on Create-react-app: https://github.com/facebookincubator/create-react-app)
Redux for state management https://redux.js.org/
Truffle For contract compiling/migrating http://truffleframework.com/ web3 To allow you to interact with a local or remote ethereum node, using a HTTP or IPC connection. https://github.com/ethereum/wiki/wiki/JavaScript-API
truffle-contract To make it easier to work with your contracts. https://github.com/trufflesuite/truffle-contract

Development Setup

  • Install truffle globally using: npm install -g truffle

  • You will need the MetaMask extension for Chrome to interact with the DApps. You can install it from here: https://metamask.io/

Working with contracts

  • All contracts and files realated to Ethereum are in directory: src/ethereum

Local Development

  • For local development: cd to directory src/ethereum and run truffle develop

  • Command to compile contracts: compile

  • Command to migrate contracts: migrate

  • Command to run tests for the contracts: test

  • To switch between uPort and Metamask, uncomment web3 declerations in Accounts.js (line 24) and Todo Services (lines 2, 3)

  • Note:truffle develop runs a local test node on localhost:9545 truffle develop Needs to be running when interacting with your contracts

  • Metamask needs to point to localhost:9545 For directions, read here under title "USING METAMASK WITH TRUFFLE DEVELOP" http://truffleframework.com/docs/advanced/truffle-with-metamask

Working with React/Redux

  • Command for running the front end: yarn start
  • Command for connecting to the Ropsten test network: truffle migrate --network ropsten Make sure that on MetaMask you are connected to Ropsten as well (keep in mind that this network is share with everyone using this network, so we can all see those todo's you will put up there).
  • for running on the Rinkeby network so you use Uport run truffle compile and then truffle migrate --network rinkeby

react_truffle_starter's People

Contributors

okstaticzero avatar budaminof avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.