Node Cookbook
暫譯: Node 食譜

David Mark Clements

  • 出版商: Packt Publishing
  • 出版日期: 2012-07-15
  • 售價: $2,000
  • 貴賓價: 9.5$1,900
  • 語言: 英文
  • 頁數: 342
  • 裝訂: Paperback
  • ISBN: 1849517185
  • ISBN-13: 9781849517188
  • 相關分類: Node.js
  • 已過版

相關主題

商品描述

Over 50 recipes to master the art of asynchronous server-side JavaScript using Node

Overview

  • Packed with practical recipes taking you from the basics to extending Node with your own modules
  • Create your own web server to see Node’s features in action
  • Work with JSON, XML, web sockets, and make the most of asynchronous programming

In Detail

The principles of asynchronous event-driven programming are perfect for today's web, where efficient real-time applications and scalability are at the forefront. Server-side JavaScript has been here since the 90's but Node got it right. With a thriving community and interest from Internet giants, it could be the PHP of tomorrow.

"Node Cookbook" shows you how to transfer your JavaScript skills to server side programming. With simple examples and supporting code, "Node Cookbook" talks you through various server side scenarios often saving you time, effort, and trouble by demonstrating best practices and showing you how to avoid security faux pas.

Beginning with making your own web server, the practical recipes in this cookbook are designed to smoothly progress you to making full web applications, command line applications, and Node modules. Node Cookbook takes you through interfacing with various database backends such as MySQL, MongoDB and Redis, working with web sockets, and interfacing with network protocols, such as SMTP. Additionally, there are recipes on correctly performing heavy computations, security implementations, writing, your own Node modules and different ways to take your apps live.

What you will learn from this book

  • Write and publish your own modules
  • Interface with various databases
  • Work with streams of data
  • Handle file uploads and POST data
  • Use the Express framework to accelerate the development of your applications
  • Learn about security, encryption, and authentication techniques
  • Approach

    As part of Packt's cookbook series, this book is packed with practical recipes that will get you working efficiently with Node from the start. Each chapter focuses on a different aspect of working with Node.

    Who this book is written for

    If you have some knowledge of JavaScript and want to build fast, efficient, scalable client-server solutions, then Node Cookbook is for you. Experienced users of Node will improve their skills although even if you have not worked with Node before, these practical recipes will make it easy to get started.

商品描述(中文翻譯)

超過 50 個食譜,掌握使用 Node 的非同步伺服器端 JavaScript 藝術

概述
- 充滿實用的食譜,帶你從基礎開始,擴展 Node 以創建自己的模組
- 創建自己的網頁伺服器,實際體驗 Node 的功能
- 使用 JSON、XML、網路套接字,充分利用非同步編程

詳細內容
非同步事件驅動編程的原則非常適合當今的網路,因為高效的即時應用程式和可擴展性是當前的重點。伺服器端 JavaScript 自 90 年代以來就已存在,但 Node 將其發揮到了極致。隨著蓬勃發展的社群和互聯網巨頭的關注,它可能成為明天的 PHP。

《Node 食譜》向你展示如何將你的 JavaScript 技能轉移到伺服器端編程。透過簡單的範例和支援代碼,《Node 食譜》引導你了解各種伺服器端場景,通常能幫你節省時間、精力和麻煩,並展示最佳實踐,教你如何避免安全失誤。

從創建自己的網頁伺服器開始,本食譜中的實用食譜旨在幫助你順利進入製作完整的網頁應用程式、命令列應用程式和 Node 模組。《Node 食譜》將帶你了解如何與各種資料庫後端(如 MySQL、MongoDB 和 Redis)進行介接,使用網路套接字,並與網路協議(如 SMTP)進行介接。此外,還有關於正確執行重計算、安全實作、撰寫自己的 Node 模組以及將應用程式上線的不同方法的食譜。

你將從本書中學到的內容
- 撰寫和發佈自己的模組
- 與各種資料庫介接
- 處理數據流
- 處理檔案上傳和 POST 數據
- 使用 Express 框架加速應用程式的開發
- 了解安全性、加密和身份驗證技術

方法
作為 Packt 的食譜系列的一部分,本書充滿了實用的食譜,讓你從一開始就能高效地使用 Node。每一章都專注於使用 Node 的不同方面。

本書的讀者對象
如果你對 JavaScript 有一定的了解,並希望構建快速、高效、可擴展的客戶端-伺服器解決方案,那麼《Node 食譜》就是為你而寫。對 Node 有經驗的使用者將提升他們的技能,即使你之前沒有使用過 Node,這些實用的食譜也會讓你輕鬆入門。