If you’re interested in building web apps with the Ethereum blockchain, you may have found the Truffle web framework to be a nice fit for your needs.

For many types of Dapps (Distributed Apps), Truffle does everything you could want: It compiles your blockchain contracts, injects them into your web app, and can even run a test suite against them!

With Metamask, all your users need to do is install our Chrome plugin, and they will have their own secure blockchain accounts right there in the convenience of their browsers.

Installing Truffle Dependencies

You’re going to need to have installed node.js.

From there, you need to install truffle ( npm install -g truffle ).

Also, you’re going to need to run a local blockchain RPC server to test and develop against. I recommend using Ganache, which you install by running npm install -g ganache-cli .

Work Central (190 Clemenceau Ave #06–01, Singapore 239924)Next let’s make sure we have our ganache running in the background. Open your terminal and run the command ganache-cli . That's all! It runs on port 8545 by default, just like most Ethereum RPCs, and so does Truffle.