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

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.

主站蜘蛛池模板: 清原| 乌恰县| 揭西县| 澳门| 贵港市| 赤水市| 新昌县| 青岛市| 元氏县| 罗源县| 安宁市| 鲁甸县| 深水埗区| 潜山县| 敦化市| 涿州市| 无锡市| 马龙县| 安达市| 石林| 信丰县| 天津市| 永安市| 玛多县| 临沭县| 曲水县| 南投市| 扎兰屯市| 商城县| 南涧| 团风县| 尖扎县| 中超| 称多县| 道孚县| 湖北省| 伊通| 乌鲁木齐市| 马山县| 邓州市| 余姚市|