Coder Social home page Coder Social logo

mywork's Introduction

mywork

To Running this project on windows environment ##Installing ###Truffle The full instructions can be find in this website: http://www.dappuniversity.com/articles/the-ultimate-ethereum-dapp-tutorial but the important commands are:

npm install -g truffle

###Ganache & Metamask & Node Package Manager (NPM) Install Ganache ,Metamask and NPM as describe in this tutorial http://www.dappuniversity.com/articles/the-ultimate-ethereum-dapp-tutorial

##Oraclize and Etherium bridge To support Oraclize you need : 1.install git 2.install python 3.Run from administer power-shell (to avoid this error:freearhey/web-learn#2)

npm install --global --production windows-build-tools  
  1. install ethereum bridge and orcalize according this tutorial: https://medium.com/coinmonks/how-to-create-a-dapp-using-truffle-oraclize-ethereum-bridge-and-webpack-9cb84b8f6bcb

##Running

TO run with frontend website with ganache

*open Ganache (set it to port 7545) *Run NPM: **open cmd window **Go to the project folder (Lastpay folder) **run NPM liteserver from

npm run dev
  • Run etherium-bridge: **open cmd window **Go to ethereum bridge folder **run Etherium bridge command:
node bridge -a 9 -H 127.0.0.1 -p 7545 --dev

*Run truffle: **open cmd window **Go to the project folder (Lastpay folder) **deploy the contract using:

truffle.cmd migrate --reset --all

*open firefox *connect to metamask *open website:http://localhost:3000/

and Thats It..

###running with Truffle console in addition we you run commands from the truffle console (using the same cmd window we deploy the contract) and run tuffle console:

truffle.cmd console

command for the console: *Deploying contract:

Lastpay.deployed().then(function(instance) { app = instance })

*call payfound function:

app.payFound({from:web3.eth.accounts[3],value:web3.toWei(10,"ether")})

*check balnce option

web3.fromWei(web3.eth.getBalance(app.address),"ether").toString()

mywork's People

Contributors

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