Ultimate guide to building on Aptos
- One liner pitch on why Aptos
- Fast, cheap, stable. That's all you need to know as an app developer
- Aptos is like Solana, but Aptos Move is easier to program than SVM contracts, and contract interaction is simpler
- Official docs: https://aptos.dev/en
- Here you can find environment setup, developer guide, API docs, SDK docs, etc.
- If you are coming from EVM or Solana, we also have cheatsheets
- Full stack templates
- Aptos-full-stack-template:https://github.com/0xaptosj/aptos-full-stack-template
- This template is more opinionated, it's the one I use personally, it has
- Contract with unit test and integration test
- Next.js frontend, with ABI type safety, server action demoing gasless transactions, demo of reading from the chain and indexer DB, and writing to the chain
- Indexer in Rust, with complete guide on deployment
- Node.js scripts for testing
- To get started, just click use as a template
- This template is more opinionated, it's the one I use personally, it has
- Create-Aptos-Dapp:https://github.com/aptos-labs/create-aptos-dapp/
- This template has more choices, there are basic templates, NFT+launchpad templates, FT+launchpad templates
- Based on npx, you can use it directly without downloading
- You can think of this template as a toolbox, take the modules you need, such as how to operate NFT, how to operate FT, how to operate launchpad, etc.
- Aptos-full-stack-template:https://github.com/0xaptosj/aptos-full-stack-template
- Aptos learn: https://learn.aptoslabs.com/en
- High level overview of Aptos and key concepts like object (Aptos equivalent of PDA or contract account), events, resources, etc
- End to end tutorial with detailed explanation on templates in create-aptos-dapp
Aptos开发指南
- 为什么选择 Aptos
- 快,便宜,稳定,作为应用开发者知道这三点就够了
- Aptos 就像 Solana,但是 Aptos 版本的 Move 比 SVM 合约更好写,而且链下链上调用更简单
- 官方文档:https://aptos.dev/en
- 全栈应用模版
- Aptos-full-stack-template:https://github.com/0xaptosj/aptos-full-stack-template
- 这个模版类似全家桶,也是我自己用的模版
- 合约有单元测试和集成测试
- Next.js 前端,有 ABI 类型安全,展示了 server action 里做无 gas 交易,展示了如何从链上和 indexer DB 读取数据,以及如何写入链上
- Rust 编写的 indexer,有完整的部署指南
- Node.js 脚本用于测试
- 直接在 github 上 fork,然后 clone 到本地,修改即可
- 这个模版类似全家桶,也是我自己用的模版
- Create-Aptos-Dapp:https://github.com/aptos-labs/create-aptos-dapp/
- 这个模版选择更多,有纯基础模版,有 NFT+launchpad 模版,有 FT+launchpad 模版
- 基于 npx,可以直接使用,不需要下载
- 大家可以把这个模版当成工具箱,从里面拿自己需要的模块,比如怎么操作 NFT,怎么操作 FT,怎么操作 launchpad 等等
- Aptos-full-stack-template:https://github.com/0xaptosj/aptos-full-stack-template
- Youtube 视频讲解:https://www.youtube.com/watch?v=uAfK1Lpr33M
- Aptos learn: https://learn.aptoslabs.com/en
- Aptos 的高层概述和关键概念,比如 object(Aptos 版本的 PDA 或者合约账户),events,resources 等等
- 详细解释 create-aptos-dapp 里面的模版的完整教程