RESTful Web API Design with Node.JS - Second Edition

Valentin Bojinov

  • 出版商: Packt Publishing
  • 出版日期: 2016-05-27
  • 定價: $998
  • 售價: 3.0$299
  • 語言: 英文
  • 頁數: 148
  • 裝訂: Paperback
  • ISBN: 1786469138
  • ISBN-13: 9781786469137
  • 相關分類: Node.js
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

商品描述

Design and implement efficient RESTful solutions with this practical hands on guide

About This Book

  • Create a fully featured RESTful API solution from scratch.
  • Learn how to leverage Node.JS, Express, MongoDB and NoSQL datastores to give an extra edge to your REST API design.
  • Use this practical guide to integrate MongoDB in your Node.js application.

Who This Book Is For

The ideal target audience for this book is web developers who have some experience with RESTful services. Familiarity with basic JavaScript programming techniques is required. No prior experience with Node.JS or Express is required.

What You Will Learn

  • Install, develop, and test your own Node.js user modules
  • Comprehend the differences between an HTTP and a RESTful application
  • Optimize RESTful service URI routing with best practices
  • Eliminate third-party dependencies in your tests with mocking
  • Learn about NoSQL data stores and integrate MongoDB in your Node.js application with Mongoose
  • Secure your services with NoSQL database integration within Node.js applications

In Detail

In this era of cloud computing, every data provisioning solution is built in a scalable and fail-safe way. Thus, when building RESTful services, the right choice for the underlying platform is vital. Node.js, with its asynchronous, event-driven architecture, is exactly the right choice to build RESTful APIs.

This book will help you enrich your development skills to create scalable, server-side, RESTful applications based on the Node.js platform.

Starting with the fundamentals of REST, you will understand why a RESTful web service is better than any other framework. You will then start creating development environment by installing node.js, express.js, and other modules. You will then write a simple HTTP request handler and create and test Node.js modules using automated tests and mock objects. You will also learn to build a Typical Web API making use of Ansible's advanced features. You will then store data by choosing the best option between a key/value data store and a document data store. Further, you will improve your existing API to make it a fully fledged, secure RESTful service.

商品描述(中文翻譯)

設計並實現高效的RESTful解決方案,這本實用的實戰指南將幫助您達成目標。

關於本書
- 從頭開始創建一個功能完整的RESTful API解決方案。
- 學習如何運用Node.JS、Express、MongoDB和NoSQL數據存儲庫來提升REST API設計的優勢。
- 使用這本實用指南在您的Node.js應用程序中集成MongoDB。

本書適合對RESTful服務有一定經驗的網絡開發人員。需要熟悉基本的JavaScript編程技巧,但不需要有Node.JS或Express的先前經驗。

您將學到什麼
- 安裝、開發和測試自己的Node.js用戶模塊。
- 理解HTTP和RESTful應用程序之間的差異。
- 使用最佳實踐優化RESTful服務的URI路由。
- 使用模擬來消除測試中的第三方依賴。
- 了解NoSQL數據存儲庫,並在您的Node.js應用程序中集成MongoDB。
- 通過NoSQL數據庫在Node.js應用程序中保護您的服務。

詳細內容
在這個雲計算時代,每個數據提供解決方案都需要具備可擴展性和故障容忍性。因此,在構建RESTful服務時,選擇正確的底層平台至關重要。Node.js以其異步、事件驅動的架構,正是構建RESTful API的正確選擇。

本書將幫助您豐富開發技能,基於Node.js平台創建可擴展的服務端RESTful應用程序。

從REST的基礎知識開始,您將了解為什麼RESTful Web服務優於其他框架。然後,您將通過安裝node.js、express.js和其他模塊來創建開發環境。接著,您將編寫一個簡單的HTTP請求處理程序,並使用自動化測試和模擬對象創建和測試Node.js模塊。您還將學習使用Ansible的高級功能來構建典型的Web API。然後,您將根據需要選擇最佳選項,將數據存儲在鍵/值數據存儲庫或文檔數據存儲庫中。此外,您還將改進現有的API,使其成為一個功能完整、安全的RESTful服務。