EthereumでMacからhello worldする備忘
Ethereumでhello worldするのが意外と大変だったので備忘
- Ethereum公式の技術説明
Tutorial:
https://github.com/ethereum/wiki/wiki/%5BJapanese%5D--Ethereum-Development-Tutorial
White Paper:
https://github.com/ethereum/wiki/wiki/%5BJapanese%5D-White-Paper
- Ethereumでhello world
一番てっとり早いturorial:
http://consensys.github.io/developers/articles/101-noob-intro/#browser_ides
Ethereum公式tutorial:
https://ethereum.gitbooks.io/frontier-guide/content/
はじめてのDaap:
https://dappsforbeginners.wordpress.com/tutorials/your-first-dapp/
0. node.jsの環境構築
1. testrpcでethereumのテスト環境を立ち上げる(本体につなぐと大変)
https://github.com/ConsenSys/eth-testrpc
# brew install eth-testrpc
# testrpc
→デフォルトでport8545を使用
2. node.js上でweb3.jsをEthereumへのインターフェースとして利用
https://github.com/ethereum/web3.js/tree/master
オブジェクト生成
# Web3=require('web3')
# web3=Web3.new()
# web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
- 番外編
GUIの開発環境を利用する
http://meteor-dapp-cosmo.meteor.com/
本番環境でethereumを掘る
同期にmacbook air(SSD)で3時間ほどかかりました