- 前言
- 推荐序一
- 推荐序二:复杂之后的理性回归
- 1. Rails 8 和现代单体架构
- 现代单体架构
- 从分离到回归
- One Person Framework
- 敏捷开发的完美契合
- Rails 8 的全栈形态
- 构建工具的最佳伙伴:Vite
- 正当其时
- 结语
- 2. 准备 Rails 开发环境
- 安装 Homebrew
- 安装 Git 与 Mise
- 搭建 Rails 开发环境
- 安装 PostgreSQL 数据库
- 结语
- 3. Zero Task 的功能设计与初始化
- 产品思维与功能定义
- 初始化 Zero Task
- 配置增强 Zero Task
- 结语
- 4. 持续集成和用户认证
- 守卫代码的防线 —— GitHub Actions CI
- 用户认证体系
- 结语
- 5. Hotwire 构建任务管理列表
- 系统的视觉风格
- 任务列表页面
- 结语
- 6. 创建新任务及行内编辑
- 创建新任务
- 第一次TDD 重构
- 任务的行内编辑 (Inline Edit)
- 结语
- 7. 完结任务管理功能
- 弹窗删除任务
- 实现任务 Toggle
- 任务的筛选和搜索
- 雕琢 UI 外观
- 结语
- 8. Solid Cache 实现仪表盘统计
- 基础仪表盘页面
- 任务的统计数据
- Solid Cache 获取统计数据
- 结语
- 9. Solid Stack 打造仪表盘日志展示
- Solid Queue 后台队列写入日志
- Solid Cable 实时推送日志展示
- 多种测试用例验证日志展示功能
- 结语
- 10. 优化与重构
- 添加导航菜单
- Morphing 解决分页困境
- Flash 消息的优化
- 重构日志后台任务的调用
- 结语
- 11. 测试金字塔
- 测试金字塔理论
- Rails 8 与测试金字塔
- 测试覆盖率
- 编写系统测试
- GitHub CI 配置更新
- 结语
- 12. 组件化的思考与设计
- 关于组件化的思考
- Zero Task 的组件化设计
- 引入 ViewComponent
- 结语
- 13. ViewComponent 的最佳实践
- 组件的目录结构
- 简化组件渲染方式
- Context 传递全局数据
- 组件内的 JS 绑定
- 组件 CSS 的隔离性
- 标准组件结构
- 组件的单元测试
- 结语
- 14. 任务管理的组件化(上)
- 列表的组件化
- Form 表单的组件化
- 结语
- 15. 任务管理的组件化(下)
- 筛选搜索栏的组件化
- Modal 弹窗的组件化
- 结语
- 16. 仪表盘的组件化
- 统计数据的组件化
- 日志展示的组件化
- 结语
- 17. 组件预览的艺术
- Storybook 介绍
- 引入 Lookbook
- Lookbook 的艺术
- 结语
- 18. Kamal 部署上线
- 选择 Kamal 的理由
- 上线前的战略筹备
- Zero Task 的生产配置
- Kamal 配置全解读
- Kamal 部署上线全纪实
- 生产数据的备份恢复
- 结语
- 19. 持续部署的华章
- 什么是持续部署
- GitHub Actions 配置
- Kamal 配置调整
- Zero Task 持续部署
- 结语
- 20. 尾声:回顾与展望
- 现代单体架构的技术基石
- 成熟软件工程的支点
- Rails 的未来展望
- 致开发者
- 参考
- 索引
Rails 8 现代单体架构实战
现代 Rails 之道进阶指南
你不需要为了用户体验而牺牲开发体验。
Rails 8 为单体架构(Monolith)的概念注入了新的生命力。
这就是现代单体架构(Modern Monolith)……
Minimum price
$19.99
$24.99
You pay
Author earns
Buying multiple copies for your team? See below for a discount!
About
About the Book
俗话说“天下大势,合久必分,分久必合”。
对于 Web 应用来说,经过微服务、前后端分离的十多年流行之后,随着硬件和网络的进步,回归单体架构的趋势开始出现了。越来越多的开发者、团队或公司,都在逐渐认识到这一变化。
Rails 8 通过一系列新特性,填平了旧时代单体架构面临的技术鸿沟,构筑起了现代单体架构(Modern Monolith)的新体系。
阅读这本书,通过一个实际 Rails 应用的完整开发到上线的全过程,你将会深刻理解并掌握到:
- Rails 8 两种不同的现代单体架构(现代标准单体、组件驱动单体)的详细实战运用;
- 从产品设计到部署上线的 Rails 应用产品的真实迭代开发流程全貌;
- 涵盖测试金字塔、持续集成、持续部署、Storybook 等业界真正工业级的软件工程实践模式;
- 各种 Ruby/Rails 开发的高级经验和技巧;
如果你热爱 Ruby,想了解 Rails 8 的最新特性,并且愿意看看现代单体架构如何实战落地,这本书就是为你写的。
Feedback
Team Discounts
Team Discounts
Get a team discount on this book!
Up to 3 members
- Minimum price
- $49.00
- Suggested price
- $62.00
Up to 5 members
- Minimum price
- $79.00
- Suggested price
- $99.00
Up to 10 members
- Minimum price
- $139
- Suggested price
- $174
Up to 15 members
- Minimum price
- $199
- Suggested price
- $249
Up to 25 members
- Minimum price
- $299
- Suggested price
- $374
Author
About the Author
曾就职于 ThoughtWorks、极狐 GitLab 的 Ruby 开发工程师/架构师,参与维护 GitLab 等大型 Rails 项目,具备十多年 Ruby/Rails 工作经验。
个人网站:
https://xiaofengyuan.com
Contents
Table of Contents
Get the free Community Edition
You can get the free Community Edition in PDF or EPUB just by sharing your name and email address with the author, or you can just click this link to read a shorter sample online...
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.