GithubHelp home page GithubHelp logo

kuaiph / ether-flow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kichong/ether-flow

0.0 1.0 0.0 95.11 MB

Consensys Academy 2018 Developer Program Final Project - Ether Flow Bounty Dapp

JavaScript 93.68% HTML 1.83% CSS 4.49%

ether-flow's Introduction

Ether Flow Bounty Dapp

Consensys Academy 2018 Developer Program Final Project - Ether Flow Bounty Dapp

Description

Ether Flow is an ethereum bounty dapp used for getting answers to questions and earning money (ether) by answering questions. Questions should be answered using "flows" - lyrics, poems, or raps.

User Stories

  • Requestors:
    • post a question and incentivise other users to answer using bounties or rewards.
    • select the wordsmith they thought had the best answer to collect the reward.
  • Wordsmiths:
    • answer posted questions using "flows" - lyrics, poems, raps, etc.
    • should try to impress the requestor with something clever or funny.
    • who are selected by the requestor, can collect the reward that was posted.
  • Anyone:
    • can view a list of the posted questions and corresponding answers or flows.
    • boost the reward in a post to increase the incentives for answering the question.

Set Up

Dependencies: Node, Truffle, and Ganache-CLI.

Clone the github repo, move into the directory, install node modules.

    git clone https://github.com/kichong/Ether-Flow.git
    cd ether-flow
    npm install

In a separate terminal, run Ganache-CLI on port 8545 (the default).

    ganache-cli

In ether-flow directory, compile contracts, migrate contracts to locally running Ganche-CLI on port 8545.

    truffle compile
    truffle migrate --reset

Run contract tests.

    truffle test

Copy seedwords/ mnemonic from Ganache-CLI.

Open browser with metamask, log into metamask with above copied seed words, set metamask to a private network (localhost 8545).

Run the frontend on http://localhost:3000).

    npm run start

User Interface

I used the truffle react box to build the user interface. I have no front-end or web development experience so the user interface is very rudimentary and incomplete as I did not have the skills or time to acquire the skills to finish building all the front-end functionality and features that I intended. However, the solidity contract is complete and its logic is working as intended. Complete functionality of the smart contract can be tested using truffle test or by copying and pasting the EtherFlow.sol code into Remix and deleting the zeppelin library references at the beginning of the contract.

Completed UI features

  • Users is able to post new requests and send an ether bounty by completing the form then clicking the Request New Flow button
  • User current metamask account is displayed (refresh page after switching accounts)
  • User can update UI with contract state by clicking on the Update List button (refresh page before updating list)
  • UI displays the user's submitted request with correct reward amount, question, and requestor address

Incomplete UI features

  • Users can submit a flow in response to a question/ request
  • Submitted flows are displayed next to corresponding question/ request
  • Requestors can choose wordsmith to collect bounty
  • Wordsmiths can collect the bounty
  • Anyone can boost a reward

ether-flow's People

Contributors

kichong avatar

Watchers

James Cloos 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.