GithubHelp home page GithubHelp logo

dapp's Introduction

Installation

Clone project, enter folder then Install nodejs and npm.

git clone https://github.com/filipeherculano/dapp
cd dapp
sudo apt install nodejs npm python3-pip solc
sudo pip3 install matplotlib

Then install truffle framework with npm. But before it, create a truffle folder inside your ~/.config folder. So the installation can run smoothly...

mkdir ~/.config/truffle

Use sudo so the script can access your /usr/local/lib. Also, install ganache-cli, will use it to run our local Ethereum network. Then, install all project dependencies.

sudo npm install -g truffle ganache-cli
sudo npm install

This should take a while ...

install IPFS by downloading it from page, extracting it and running the script

https://dist.ipfs.io/#go-ipfs

tar xvfz go-ipfs.tar.gz cd go-ipfs ./install.sh

=============================================================

ipfs init

ipfs daemon

ipfs swarm peers

ipfs add -r

Usage

First you'll need to start the chain and all tests within. They will put their data onto a buffer and build/plot_data/*.txt. The buffer.txt will be used and deleted afterwords.

sudo python3 scripts/python/start_chain.py

Make sure to run get_times.js and plot.py in another terminal, since you must still be running your local blockchain on ganache.

sudo node scripts/js/get_times.py
sudo python3 scripts/python/plot.py

dapp's People

Contributors

filipeherculano avatar

Stargazers

 avatar

Watchers

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