Coder Social home page Coder Social logo

blockchaintrials's Introduction

Create Sample App using STRATO

Create STRATO instance on Azure

https://azuremarketplace.microsoft.com/en-us/marketplace/apps/blockapps.strato-blockchain-lts-vm?tab=Overview

OR install the developer trial edition

https://github.com/blockapps/strato-getting-started

Install blockapps-bloc

https://www.npmjs.com/package/blockapps-bloc

$ npm install -g blockapps-bloc

$ bloc init  (set app name "firstapp")

## Change the config.yaml with the correct API url from the test drive

$ npm install

## npm install -g solc

$ bloc genkey  

## Make sure to enter entropy password and remember it. It creates admin account first, see "admin" folder under app/users and inside it a json file with all the details

## Use bloc genkey testuser  (this creates an account with name "testuser")

$ bloc compile SimpleStorage

$ bloc upload SimpleStorage   (use the entropy password to retrieve private key)

## See the updated files in the app/meta/SimpleStorage folder

$ bloc start

## Use Post Man or Fiddler to brower through various API's
## GET http://localhost:8000/users

STRATO Pizza Demo

Demo Code : https://github.com/blockapps/pizza-demo

## Deploy it in the same VM instances as STRATO

$ git clone https://github.com/blockapps/pizza-demo.git

$ cd pizza-demo

## Change Port 9001 to 9011 in DockerFile, docker-compose.yml and Gruntfile.js

$ sudo docker build -t pizza --build-arg STRATO=ubuntudev.westus.cloudapp.azure.com .

$ sudo docker-compose up

## Open http://ubuntudev.westus.cloudapp.azure.com:9011/

TRUFFLE development

Create Truffle environment on Azure using Marketplace

https://azuremarketplace.microsoft.com/en-us/marketplace/apps/consensys.truffle

OR install it on Windows

http://truffleframework.com/tutorials/how-to-install-truffle-and-testrpc-on-windows-for-blockchain-development

https://github.com/ethereumjs/testrpc/wiki/Installing-TestRPC-on-Windows (this does not work currently due to sha3 vc++ compiling issue)

$ testrpc   (keep it running in a separate console session)

$ mkdir truffledemo
$ cd truffledemo

$ truffle init

## edit the truffle.js file, change the rpc:host property from localhost to IP/DNS of the VM

$ truffle compile

$ truffle migrate

## see the testrpc console session for transaction and contract activities

$ truffle build

$ truffle serve

## Browse the Daap on port 8080 (http://truffledev.westus.cloudapp.azure.com:8080/)

## Copy any account info from the account list shown by "testrpc" and send some metacoin to it

## Now change the truffledmoe/app/javascripts/app.js to show the details of that account.
## Update 'window.load' function account = account[0] to account = account[1] or whatever the index of the account.

Solidity In Visual Studio

https://medium.com/@ConsenSys/solidity-integration-with-visual-studio-8bdab2ff8a74

blockchaintrials's People

Contributors

jomit avatar

Watchers

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