Leanpub Header

Skip to main content

Node.js 雲端技術與軟體思惟

Developing Web App with Node.js and Backbone.js

Minimum price

$7.99

$7.99

You pay

$7.99

Author earns

$6.39
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.
PDF
EPUB
WEB
432
Readers
244
Pages
About

About

About the Book

寫作理念

  • 給 Node.js  初學者的入門教材。
  • 本書給予基本的學習指南與重點整理,對初學者認識 Node.js 有很大的幫助。
  • 本書加入許多思惟邏輯的介紹,有助於建立架構化的思考。
  • 軟體工程師著重思惟修煉,從分析與思考的角度學習 Node.js & HTML5。
  • 介紹應用技術:Express.js、RESTful、Backbone.js。

閱讀建議

  • 讀者應具備至少一種程式語言的能力,具 JavaScript  程式語言基礎佳
  • 建議具備基本的 Web 開發經驗

發佈歷史

  • Week 1:2013.10.10 初次發佈 Chapter1~Chapter2
  • Week 2:2013.10.17 正式發佈 Chapter3~Chapter4
  • Week 3:2013.10.24 正式發佈 Chapter5~Chapter7
  • Week 4:2013.11.02 正式發佈 Chapter8
  • Week 5:2013.11.11 正式發佈 Chapter9
  • Week 6:2013.11.22 正式發佈 Chapter10
  • Week 7:2013.12.05 正式發佈 Chapter11
  • Week 8:2013.12.31 正式發佈 Chapter12

Release Notes: 2013.10.17

"今天正式發佈第 2 週章節了。本次新增第 3 章與第 4 章共二章。學習主題包含:Nodejs URL Routing、Query String、WebSocket、JSON。歡迎下載更新版 Ebook。"

Release Notes: 2013.10.24

"今天正式發佈第 3 週章節了。本次共新增 3 個章節,第 5~7 章共二章。學習主題包含:Lambda、Web Service 與 Nonblocking IO 的觀念。利用一週的時間,思考 3 個重要的軟體開發觀念,鍛鍊內功,為接下來的進階主題做好準備。"

Release Notes: 2013.11.02

"本週正式更新第 8 章。從這章開始,主題將切入 Node.js 的應用層面。最重要的應用主題首推 Express.js,這是一個搭配 Node.js 的 MVC 應用程式框架。歡迎跟隨本週進度,練習基本的 Node.js + Express.js 開發技術。從本週開始,每週的更新時間調整為每週六或日(原每週四),還有 4 週的發佈計畫,歡迎繼續學習。"

Release Notes: 2013.11.11

"本週正式發佈第 9 章,為大家介紹 Express.js 的 Middleware 觀念,這是一個有趣又實用的技術,Middleware 可以幫助開發者,用很精簡的方式,來控制程式的流程,例如:頁面的保護。Middleware 可以想像成是 URL 的 Plugin,想為 URL 加入一些外掛功能嗎?寫 Middleware  就對了。"

Release Notes: 2013.11.22

"第 6 週章節發佈。今天正式發佈第 10 章,主題是「REST API 架構 - 使用 Express.js」。學習 REST API 的觀念,並練習實作 Web Service,是您學習 Node.js 的重要里程碑。跨過這個里程碑後,使用 Node.js 來開發即時互動 Web 應用,就會變得輕鬆自在了!"

Release Notes: 2013.12.05

"發佈第 11 章:REST API 應用 - 使用 jQuery。除了學習 REST API 的應用外,還要初探一個叫做 MVC 的軟體架構模式,這是軟體開發的重要思惟。但 MVC 有其必要性嗎?以及 MVC 架構模式能解決什麼問題,並帶來什麼好處?本章透過 Client Application 的製作,引導讀者發現問題,並思考 MVC 架構模式的必要性。"

Release Notes: 2013.12.31

"發佈第 12 章:MVC 架構實作 - Backbone.js 入門。以最精簡、省時的方式,入門 Backbone.js 框架,以及 MVC 架構實作。在 2013 年的最後一天,為大家送上本書入門篇的最後一個章節。Happy New Year!2014 年繼續邁向進階主題。"

Revision

Rev.1 - 2014.03.13

  • News: 更名為「Node.js 雲端技術與軟體思惟」
  • Update: Chapter 1: 加強對 Constructor Pattern 的說明
  • Add: Chapter 1: 新增 Prototype Pattern 的說明
  • Add: Chapter 12: 新增更多 Backbone.js 的 Data Model 教學

Share this book

Categories

Author

About the Author

Jollen Chen

Jollen Chen,Moko365(仕橙3G教室) CEO 與講師,Mokoversity Founder 暨軟體工程師,熱愛研究 Linux 與 Android 技術。2005 年開始,參與、也負責過 Android 手機的產品開發計畫。曾為 Motorola、HTC、Foxconn、LG、OPPO、騰迅、廣達電腦、緯創、仁寶等超過 50 家企業講授課程。負責 Mokoversity 的全端軟體開發,也在幾家科技廠兼任 Linux 驅動程式與 Android Framework 架構設計顧問。目前正默默打造一些 Startup 計畫。

Contents

Table of Contents

  • 1. JavaScript 設計模式
    • 1.1 Object
    • 1.2 宣告 Class
    • 1.3 使用 Factory Pattern
    • 1.4 Constructor Pattern
    • 1.5 Design Pattern for Front-End
    • 1.6 Module Pattern
    • 1.7 jQuery Pattern
    • 1.8 選擇器模式
    • 1.9 jQuery Pattern 實作 (jQuery 插件開發)
    • 1.10 Prototype Pattern
    • 1.11 其它模式
  • 2. HTML5 軟體開發的概念
    • 2.1 HTML5 的 Runtime 是瀏覽器
    • 2.2 從 Chrome 瀏覽器談起
    • 2.3 理解平臺的概念
    • 2.4 從 Web Page 到 Web App
    • 2.5 HTML5 時代來臨
    • 2.6 JavaScript 也能開發雲端服務
    • 2.7 為 HTML 加入應用程式特性
    • 2.8 Over HTTP
    • 2.9 Web-Oriented Architect
    • 2.10 Data Push 設計模式
    • 2.11 Device API 的革命時代
    • 2.12 重要的資訊交換格式:JSON
    • 2.13 結論
  • 3. Node.js 入門 - URL Routing 篇
    • 3.1 觀看 Nodejs 線上課程
    • 3.2 第一個 Node.js 程式
    • 3.3 製作 Node.js 模組
    • 3.4 URL Routing
    • 3.5 設計 HTTP API
    • 3.6 解析 Query String
    • 3.7 結論
  • 4. Node.js 入門 - WebSocket 與 JSON 篇
    • 4.1 建立 WebSocket Server
    • 4.2 儲存用戶端 WebSocket 連線
    • 4.3 學習 JSON 格式
    • 4.4 JSON Stringify
    • 4.5 製作 WebSocket 用戶端
    • 4.6 結論
  • 5. 軟體思惟 - Lambda 篇
    • 5.1 Lambda
    • 5.2 Callback Function
    • 5.3 使用 TypeScript
  • 6. 軟體思惟 - Web Service 篇
    • 6.1 再探 HTTP API
    • 6.2 REST
    • 6.3 CRUD 與 HTTP Method
    • 6.4 結論
  • 7. 軟體思惟 - Non-blocking IO 篇
    • 7.1 Node.js File System
    • 7.2 讀取多個檔案
    • 7.3 結論
  • 8. Node.js 應用 - Express.js 入門
    • 8.1 Express.js 初體驗
    • 8.2 Express.js 的學習建議
    • 8.3 MVC 與 HTML Template Engine
    • 8.4 學習 Jade 程式語言
    • 8.5 解析 app.js
    • 8.6 Express URL Routing
    • 8.7 Middleware 的觀念
  • 9. Express.js 應用 - Middleware
    • 9.1 使用 app.get() 撰寫 Middlware
    • 9.2 Middleware 與流程控制
    • 9.3 使用 app.use() 撰寫 Middlware
    • 9.4 常用的 Express.js Middleware
    • 9.5 結論
  • 10. REST API 架構 - 使用 Express.js
    • 10.1 關於 SOA 與 3-Tier 架構
    • 10.2 Presenetation 在 Client 端
    • 10.3 Express.js 與 REST API
    • 10.4 RESTful 架構實務 - 即時聊天室
    • 10.5 結論
  • 11. REST API 應用 - 使用 jQuery
    • 11.1 呼叫 REST API - 使用 jQuery
    • 11.2 認識 Key-Value Pairs 觀念
    • 11.3 結論
  • 12. MVC 架構實作 - Backbone.js 入門
    • 12.1 初學 Backbone Way
    • 12.2 認識 View.$el
    • 12.3 認識 Backbone.Model
    • 12.4 認識 Backbone.Model.fetch
    • 12.5 認識 Backbone.Model.save
    • 12.6 結論
  • 13. MongoDB 簡介
    • 13.1 安裝 MongoDB 資料庫伺服器
    • 13.2 使用 Mongoose Driver
    • 13.3 CRUD 實作
    • 13.4 結論
  • 14. Node.js + IoT 基礎概論
    • 14.1 Constrained Device
    • 14.2 Physical Object
    • 14.3 IoT Open Architecture:HTTP & REST API
    • 14.4 從 HTTP 到 Websocket & CoAP
    • 14.5 物聯網的真正關鍵:IoT Open Architecture
    • 14.6 Privacy
    • 14.7 Personal Things
    • 14.8 Hackers x Makers
    • 14.9 Openmbed and WoT.City
    • 14.10 本章小結
  • 15. ARM mbed 物聯網裝置入門 - Networking
    • 15.1 ARM mbed 作業系統
    • 15.2 mbed Compile API
    • 15.3 mbed Networking
    • 15.4 使用 NTP-Network Time Protocol
    • 15.5 WoT 裝置的 Use Case

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