Express.js Blueprints
暫譯: Express.js 藍圖
Ben Augarten, Marc Kuo, Eric Lin, Aidha Shaikh, Fabiano Pereira Soriani
- 出版商: Packt Publishing
- 出版日期: 2015-05-16
- 售價: $1,350
- 貴賓價: 9.5 折 $1,283
- 語言: 英文
- 頁數: 198
- 裝訂: Paperback
- ISBN: 1783983027
- ISBN-13: 9781783983025
海外代購書籍(需單獨結帳)
相關主題
商品描述
Learn to use Express.js pragmatically by creating five fun and robust real-world APIs, with a bonus chapter on Koa.js
About This Book
- Develop scalable APIs using the Express.js framework for Node.js
- Be more productive by learning about Express.js intricacies and its supporting libraries
- Get to grips with coding best practices and Test-Driven Development to create real-world applications using Express.js
Who This Book Is For
This book is for beginners to Node.js and also for those who are technically advanced. By the end of this book, every competent developer will have achieved expertise in building web applications with Express.js.
What You Will Learn
- Set up the Express.js framework with a basic scaffold
- Model data using Mongoose and build a CRUD API to store the data in a database
- Use promises to avoid callback hell in Node.js
- Address scalability concerns and deal with race conditions
- Apply test-driven development (TDD) by using Mocha to write tests for your apps
- Get familiar with service-oriented architecture (SOA)
- Integrate Socket.IO and dynamically push updates to the client
- Write Node.js APIs by leveraging generator functions using Koa.js
In Detail
APIs are at the core of every serious web application. Express.js is the most popular framework for building on top of Node.js, an exciting tool that is easy to use and allows you to build APIs and develop your backend in JavaScript. Express.js Blueprints consists of many well-crafted tutorials that will teach you how to build robust APIs using Express.js.
The book covers various different types of applications, each with a diverse set of challenges. You will start with the basics such as hosting static content and user authentication and work your way up to creating real-time, multiplayer online games using a combination of HTTP and Socket.IO. Next, you'll learn the principles of SOA in Node.js and see them used to build a pairing as a service. If that's not enough, we'll build a CRUD backend to post links and upvote with Koa.js!
商品描述(中文翻譯)
透過創建五個有趣且穩健的實際應用程式介面,學習如何務實地使用 Express.js,並附加 Koa.js 的獎勵章節
本書簡介
- 使用 Express.js 框架為 Node.js 開發可擴展的 API
- 透過學習 Express.js 的細節及其支援庫,提高生產力
- 掌握最佳編碼實踐和測試驅動開發,使用 Express.js 創建實際應用程式
本書適合誰
本書適合 Node.js 的初學者以及技術上較為進階的人士。到本書結束時,每位合格的開發者都將在使用 Express.js 建立網頁應用程式方面達到專業水平。
您將學到什麼
- 設置 Express.js 框架的基本架構
- 使用 Mongoose 建模數據並構建 CRUD API 以將數據存儲在數據庫中
- 使用 promises 避免 Node.js 中的回調地獄
- 解決可擴展性問題並處理競爭條件
- 通過使用 Mocha 為您的應用程式編寫測試,應用測試驅動開發 (TDD)
- 熟悉面向服務的架構 (SOA)
- 整合 Socket.IO 並動態推送更新到客戶端
- 利用 Koa.js 的生成器函數編寫 Node.js API
詳細內容
API 是每個嚴肅網頁應用程式的核心。Express.js 是在 Node.js 上構建的最受歡迎的框架,這是一個易於使用的令人興奮的工具,允許您使用 JavaScript 構建 API 和開發後端。Express.js Blueprints 包含許多精心設計的教程,將教您如何使用 Express.js 構建穩健的 API。
本書涵蓋各種不同類型的應用程式,每種應用程式都有多樣的挑戰。您將從基本的靜態內容托管和用戶身份驗證開始,逐步學習如何使用 HTTP 和 Socket.IO 的組合創建實時多人在線遊戲。接下來,您將學習 Node.js 中的 SOA 原則,並看到它們用於構建配對服務。如果這還不夠,我們將使用 Koa.js 構建一個 CRUD 後端來發佈鏈接和進行投票!