# 以太坊链DAPP编写

By [Moe](https://paragraph.com/@agaue) · 2022-11-01

---

怎么写一个DAPP？网上教程比较多，本文结合自己的学习过程，只做信息整理。

智能合约语言Solidity学习，推荐学习平台，跟着教程学习完毕，就对Solidity有基本的了解和编写简单的智能合约代码了。

[https://cryptozombies.io/en/course/](https://cryptozombies.io/en/course/)

Solidity编辑器推荐 Remix IDE。有网页版跟软件，自己根据情况选择。

[https://remix-project.org/](https://remix-project.org/)

测试链，我是自己启动了一条测试链，然后讲合约代码发布到自己的测试链上。这涉及到geth的安装跟启动

geth mac安装和启动，参考eth社区官网：

[https://geth.ethereum.org/docs/install-and-build/installing-geth](https://geth.ethereum.org/docs/install-and-build/installing-geth)

geth的使用，包括如何启动，如何链接到节点，常用命令（创建账号，转账，查余额）等：

[https://geth.ethereum.org/docs/interface/hardware](https://geth.ethereum.org/docs/interface/hardware)

Remix IDE 链接本地测试链，可以使用本地的测试账号。

![](https://storage.googleapis.com/papyrus_images/ba2404fcd553c8342e088f2b71f490043653e6930c760edf143c4bd0f21776cf.png)

合约部署，选择好vm，账号，gas limit等配置后，点击Deploy按钮部署智能合约。

![](https://storage.googleapis.com/papyrus_images/d7abfcbb78f4dfd44d10101bfc7097bd7d0451624e8861319b2dc92599a21963.png)

部署完成后，左下角能看到已发布的合约。

![](https://storage.googleapis.com/papyrus_images/21c9490de9703344f4aa5fdc159889f30ebeb1b7d708d5a214abd7987be06237.png)

---

*Originally published on [Moe](https://paragraph.com/@agaue/dapp)*
