Block chain
https://www.youtube.com/watch?v=YcTSilIfih0
npm install truffle -g
To setup our local testing space. This will give give us some local account(user) where we can test our blockchain's functionalty
npm install -g ethereumjs-testrpc
To start with truffle project write the below command in CMD or Powershell for windows 10 (use powershell if CMD is not allowing the truffle.js/Module error )
inside project
truffle init
testrpc
open project //inside a editor make a new .sol file in contract folder Write Your contract in solidity
truffle compile
truffle migrate
truffle console
helloworl.deployed().then(function(instance){return instance.sayHello.call();}).then(function(result){console.log(result);});
While installing the web3 through npm command is
npm install web3 -save
it will clone a git repository git://github.com/frozeman/WebSocket-Node.git but it will throw a error
Cannot find git://github.com/frozeman/WebSocket-Node.git // or something like this
This is happening cause the protocol used here is git
which is not so effecient in this case to you have to force to replace the protocol https
instead of git
.so to do that type the following command in the git bash terminal
git config --global url."https://".insteadOf git://
npm install --global --production windows-build-tools
it will take quite long time
```
npm install web3
```