Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.73 KB

README.md

File metadata and controls

46 lines (37 loc) · 1.73 KB

os17

Requirements

Meteor

$curl https://install.meteor.com/ | sh

Pro-tips

1. Meteor and npm have a wierd bug. Configure the proxies as follows. 
'''
npm config set proxy http://user:pass@10.3.100.207:8080  
npm config set https-proxy http://user:pass@10.3.100.207:8080  
export HTTP_PROXY=http://user:pass@10.3.100.207:8080  
export HTTPS_PROXY=http://user:pass@10.3.100.207:8080  
'''

Testing with a private network

Start listening IPFS localhost

$ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:3000", "http://localhost:5001"]'
$ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
$ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
$ipfs daemon

Start Listening Ethererum node

$geth --datadir path/to/dataDir init path/to/genesis.json
$geth --identity "nodeB" --rpc --rpcport "8000" --rpccorsdomain "*" --datadir "./d1" --port "PORT" --ipcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3" --rpcapi "db,eth,net,web3" --autodag --networkid 1900 --nat "any" console
# Each node should have different PORT 

Launch Meteor

$cd path/to/scratch/
$meteor

To deploy the contract

[Refer here](https://github.com/ethereum/go-ethereum/wiki/Contract-Tutorial). 
After deploying find the contract address as ContractObj.address
Change the '''address=\'...\' ''' line in scratch/client/lib/init.js to this address.

Write this in ethereum terminal :

Create New Account:

personal.newAccount("<<Password>>")

Account unlock:

personal.unlockAccount(eth.accounts[0],"<<Passowrd>>")

Miner:

miner.start()
miner.stop()