Skip to content

daivikswarup/os17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:[email protected]:8080  
npm config set https-proxy http://user:[email protected]:8080  
export HTTP_PROXY=http://user:[email protected]:8080  
export HTTPS_PROXY=http://user:[email protected]: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()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published