Giter VIP home page Giter VIP logo

rooexchange's Introduction

RooExchange

Example dApp, build to learn. Include a ERC20 Token Contract and a simplifiyed distributed Exchange. Based on https://github.com/tomw1808/distributed_exchange_truffle_class_3, contracts upgraded to solidity 0.4.18 and web done with React.

Commands:

  Compile:              truffle compile
  Migrate:              truffle migrate
  Test contracts:       truffle test
  Test dapp:            npm test
  or:                   yarn test
  Run dev server:       npm run start
  or:                   yarn start
  Build for production: npm run build
  or                    yarn build

Tools:

  • ganache-cli -> set up a virtual private network, transactions executed immediately (no need to wait for mining)
  • geth -> you can also set up private network with geth
  • use MetaMask plugin (Chrome or Brave) or Mist to use dApp

Deploying dev environment (using ganache-cli and MetaMask)

  1. run ganache-cli (save your mnemonic to be able to get the same setup later)
    • ganache will generate 10 addresses, write them down (including private keys)
    • private network will be accessable at localhost:8545
  2. run truffle migrate -> migrates contracts to your private network
  3. run truffle test -> test that contract are still running as expected
  4. run yarn start
  5. import at least 2 of accounts generated in step no. 1 to MetaMask (account no. 0, will contain RooCoins)
  6. you can now test and play with RooExchange

TODO:

  • add validation to forms
  • improve UI (leading indicators, add more information)
  • add more coins, charts and similar

rooexchange's People

Contributors

iprlic 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.