Leanpub Header

Skip to main content

Clean Architecture in TypeScript

這本書是在我的個人網誌(https://blog.aotoki.me)連載的系列文章集結,透過購買本書可以先行看到尚未發表的內容。

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
93
Pages
About

About

About the Book

寫完 Clean Architecture in Go 系列後,原本預定是要探討 Ruby 相關的主題,然而剛好遇上大量的 AI(人工智慧)應用,在規劃下一系列的期間剛好使用大量的 TypeScript 來搭配實驗,最後決定先來撰寫這一個系列。

Share this book

Categories

Installments completed

3 / 24

Price

Pick Your Price...

Minimum price

$3.99

$5.99

You pay

$5.99

Author earns

$4.79
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 1)

1
The author will earn $12.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

邱政憲(蒼時弦也)

對我來說軟體開發是一件非常有趣的事情,然而許多時候並不一定能滿足條件。為此,我開始思考如何讓大眾「開心寫程式,製作有趣事物」的方法。

Contents

Table of Contents

    • 連載介紹
      • 意外
      • 開發的變化
      • 軟體的變化
    • 目標設定
      • 半自動
      • 彈性
      • 對話式購物車
    • Hono 框架
      • 部署彈性
      • RPC
      • Hydrate(合成)
    • tsyring 套件
      • 簡潔
      • 可測試性
      • Serverless 友善
    • 專案設定
      • 初始化專案
      • 前端設定
      • 依賴注入
    • 介面規劃
      • 介面草稿
      • 設計系統
      • 測試效果
    • 架構規劃
      • Clean Architecture
      • 商業邏輯
      • 架構規劃
    • 助手對話介面
      • 初始畫面
      • 樣式設定
      • 對話介面
    • 對話紀錄 API
      • CONVENTIONS.md
      • 修改計劃
      • 檢查實作
    • 對話紀錄 UseCase
      • 定義介面
      • 低階元件
      • 清理與修正
    • 整合大型語言模型
      • 整合後端
      • AI SDK
      • 整合模型
    • 對話 UseCase
      • 定義介面
      • 進行重構
      • 修正細節
    • 購物車側欄
      • 更新畫面
      • 後端整合
      • 累積經驗
    • 側欄 Use Case
      • 定義介面
      • 進行重構
      • 工具使用
    • 查詢商品
      • 定義工具
      • 定義介面
      • 進行重構
    • 更新購物車
      • 新增工具
      • 調整提示
      • 細部調整
    • 依賴注入
      • 大量修改
      • 細節修正
      • 例外情況
    • 測試準備
      • 模型注入
      • Vitest 安裝
      • Mock Repository
    • 測試步驟
      • 步驟定義
      • Cart API 重構
      • Chat API 重構
    • 模擬語言模型呼叫
      • Cloudflare Worker 的限制
      • 產生 MockLanguageModel
      • 平衡

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 $14 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.

Learn more about writing on Leanpub