官术网_书友最值得收藏!

What is Truffle?

In short, Truffle is a framework to write, compile, deploy, and test decentralized applications on Ethereum blockchains. For this chapter, you can also think of Truffle as a framework that attempts to seamlessly integrate smart contract development and traditional web development.

Granularly, within the Truffle environment, you can write JavaScript for the frontend, Solidity for smart contracts, and use web3 as a bridge to connect various blockchain networks to the client.

If you are not familiar with web3, or you need a refresher on Solidity, worry not. The subsequent chapter will cover these two technologies in sufficient detail before you start building more complex decentralized applications.

For now, it is enough to know that Truffle combines JavaScript, Solidity, and web3 to allow you to write complete and testable decentralized applications:

Can you write decentralized applications without Truffle? Sure you can. Truffle simply makes the process of compiling, building, and migrating your application easier by automating certain monotonous aspects.

You will see how this is done toward the end of this chapter when you build a small but complete decentralized application. I will walk you through code snippets, provide a working repository for reference, and explain to you fundamental build concepts as you write code. Most importantly, I want to ensure you start coding as soon as possible. So, let's get started.

主站蜘蛛池模板: 新泰市| 长葛市| 麟游县| 甘肃省| 洛隆县| 闸北区| 巫溪县| 迁安市| 庆安县| 江达县| 清原| 龙海市| 巧家县| 岳普湖县| 商丘市| 日喀则市| 隆德县| 泰州市| 新安县| 抚州市| 和硕县| 和田市| 金川县| 德惠市| 通河县| 锡林浩特市| 通城县| 金溪县| 昔阳县| 襄垣县| 河间市| 台东市| 巴塘县| 通化县| 江达县| 绥芬河市| 加查县| 邳州市| 梁山县| 永济市| 邓州市|