GithubHelp home page GithubHelp logo

mirolima / prototype Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sponnet/prototype_old

0.0 2.0 0.0 30.45 MB

Here you'll find the early prototypes for the Arcade City front-end Ethereum app.

License: Other

HTML 43.26% JavaScript 56.38% CSS 0.36%

prototype's Introduction

#Here you'll find the source code for the Arcade City front end app prototype.

compiling and deploying the Ethereum DAPP

Prerequisites

create a wallet

  • Make a lightwallet wallet with some ether on it - copy it to scripts/wallet.json

cd truffle

npm install eth-lightwallet

npm install hooked-web3-provider

node scripts/makewallet.js

This script will output the first account in your wallet - together with its private key:

Your main account is e3b29238498e55dc5723fd43912036c5293bdef9 your PK = <you PK will appear here>

You can use that PK to start testrpc with that account filled with ether to perform your tests. For example: testrpc --account="<062ba844a5094dd38f6d3d9f0682f6110ece8b9e40e40a7e68b93f528167c5bd>,50000"

After that you can migrate to the morden testnet using the same wallet. Get some ether on your account by visiting our testnet faucet http://faucet.ma.cx:3000/ and get some ether for your transactions.

Build the contracts

cd truffle

truffle compile

truffle migrate

copy the DAPP contracts to the web frontend

cd truffle

node ./scripts/copycontracts.js will extract the bytecode/abi/address in a JSON file and copy it to the polymer app/contracts folder. The frontend will pick it up from there.

Installing the front-end webapp

The frontend app is a Polymer web-app. After you have compiled and deployed the DAPP contracts, you can try running the app itself.

npm install

bower install

gulp serve

Minting tokens

cd truffle node ./scripts/mint.js getlc "e3b29238498e55dc5723fd43912036c5293bdef9" 100

will mint 1 token to your account. Your token balance will appear in the app after the next mined block.

Make sure your account also had some ether to perform your transactions ( again : use our testnet faucet )

prototype's People

Contributors

kingflurkel avatar sponnet avatar adriansonb avatar johndoe389 avatar

Watchers

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