Coder Social home page Coder Social logo

mcarlucci / disperse Goto Github PK

View Code? Open in Web Editor NEW
44.0 6.0 16.0 18.48 MB

React/Redux dApp (decentralized app) boilerplate using Ethereum's blockchain

JavaScript 95.70% HTML 1.60% CSS 2.32% Shell 0.39%
react truffle ethereum ethereum-dapp boilerplate dapp testrpc ethereum-blockchain memory-blockchain redux

disperse's Introduction

React dApp (decentralized app) boilerplate using Ethereum's blockchain. Built using React, React-Redux, React-Router, Truffle and Ethereum in-memory blockchain.

System requirements:

  • macOS (cross-platform contributions are welcome)

Learn more about creating and testing Ethereum Smart Contracts

Setup

npm install

Run

npm start

A new seperate terminal window will open and run the in-memory Ethereum blockchain.

Test

To test contracts, run:

truffle compile
truffle test

To unit test, run:

npm test

Build

A production build can be found in the build_webpack folder when you run:

npm run build

disperse's People

Contributors

dependabot[bot] avatar lvndry avatar mcarlucci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

disperse's Issues

npm start => scripts/testrpc.sh: line 6: ttab: command not found

Truffle v4.1.3 (core: 4.1.3)
Solidity v0.4.19 (solc-js)

HighSierra 10.13.3

npm start

[email protected] start /Users/.../.../truffle/disperse/disperse
scripts/testrpc.sh && truffle migrate && node scripts/start.js

scripts/testrpc.sh: line 6: ttab: command not found
Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle.js)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: scripts/testrpc.sh && truffle migrate && node scripts/start.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.../.npm/_logs/2018-03-14T15_10_35_843Z-debug.log

Sign up button doesn't work

Also I get this error:
inpage.js:1 Uncaught Error: The MetaMask Web3 object does not support synchronous methods like eth_mining without a callback parameter. See https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#dizzy-all-async---think-of-metamask-as-a-light-client for details.
at MetamaskInpageProvider.send (inpage.js:1)
at RequestManager.send (requestmanager.js:58)
at Eth.get [as mining] (property.js:107)
at derez (:1:66285)
at derez (:1:66278)
at derez (:1:66278)
at derez (:1:66278)
at derez (:1:66278)
at derez (:1:66278)
at Object.decycle (:1:66315)

Npm install doesnt work

Hi,
I just wanted to give a try to your project but can't pass the Setup with: npm install
Please see below.
I'm using Windows 10 and npm version 5.6

disperse

Login Button & Sign Up Button Error: Contract Deployment network/artifact mismatch

The login button and the sign up button gives me an error in console:

Uncaught (in promise) Error: Contract has not been deployed to detected network (network/artifact mismatch) at contract.js:419

I checked if I was running a network in truffle and it shows one running:

โžœ truffle networks
The following networks are configured to match any network id ('*'): development

I'm not sure how to connect it to the correct network if the above one is incorrect.

How to access web3 from layout component?

If I have a layout component, how can i get the web3 object so that I can use it?

For example, when a user clicks on a button, it will ask web3 to fetch the current block number.

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.