Mongoose for Application Development
暫譯: 應用程式開發中的 Mongoose
Simon Holmes
- 出版商: Packt Publishing
- 出版日期: 2013-08-10
- 售價: $1,840
- 貴賓價: 9.5 折 $1,748
- 語言: 英文
- 頁數: 142
- 裝訂: Paperback
- ISBN: 1782168192
- ISBN-13: 9781782168195
海外代購書籍(需單獨結帳)
商品描述
Mongoose streamlines application development on the Node.js stack and this book is the ideal guide to both the concepts and practical application. From connecting to a database to re-usable plugins, it’s all here.
Overview
- Rapid application development with Mongoose on the Node.js stack
- Use Mongoose to give structure and manageability to MongoDB data
- Practical examples on how to use Mongoose for CRUD operations
- Provides a number of helpful tips and takes away the complexity of everyday MongoDB operations
- Walks you through building a project management application using Mongoose, Node.js, MongoDB, and Express
In Detail
Mongoose is all about putting the data model where it should be: in your application. You can control everything from within your application in JavaScript, eliminating the need to work with the database or a separate management system.
Mongoose for Application Development is a practical, hands-on guide that takes you from installing the technology stack through the steps of developing a web application. It covers the key features of Mongoose and how to use them to rapidly develop a Node.js and MongoDB application.
This book introduces the full technology stack of Node.js, MongoDB, Express, and Mongoose. It will take you through the process of building an application on this stack with a focus on how Mongoose makes the process quicker and easier.
You will see how Mongoose removes a layer of complexity when dealing with MongoDB whilst giving you more control over your data from your application. You will learn how to define schemas and models for your data in JavaScript. Using these schemas and models, you will learn how to build the cornerstone of any web application that will include CRUD operations (creating, reading, updating, and deleting data). If you want to learn how to build applications quickly and efficiently using Node.js, then Mongoose and this book are ideal for you.
Using practical examples throughout, Mongoose for Application Development not only teaches you about the concepts of Mongoose, but walks through how to use them to build a real-life application.
What you will learn from this book
- Learn the different methods of using Mongoose to connect to a database
- Learn to define schemas and building data models
- Interact with data using schema methods
- Create databases, collections, and data
- Query the database to find specific data
- Edit, save, and delete data
- Validate data using Mongoose validators
- Use population to link datasets
- Use sub-documents and nested schemas to provide data depth
- Get to grips with code efficiency through re-usable plugins
Approach
This book is a mini tutorial full of code examples and strategies to give you plenty of options when building your own applications with MongoDB.
Who this book is written for
This book is ideal for people who want to develop applications on the Node.js stack quickly and efficiently. Prior knowledge of the stack is not essential as the book briefly covers the installation of the core components and builds all aspects of the example application. The focus of the book is on what Mongoose adds to you applications, so experienced Node.js developers will also benefit.
商品描述(中文翻譯)
Mongoose 簡化了在 Node.js 堆疊上的應用程式開發,而這本書是理解概念和實際應用的理想指南。從連接資料庫到可重用的插件,這裡應有盡有。
概述
- 使用 Mongoose 在 Node.js 堆疊上快速開發應用程式
- 使用 Mongoose 為 MongoDB 數據提供結構和可管理性
- 實用範例展示如何使用 Mongoose 進行 CRUD 操作
- 提供多個有用的提示,簡化日常 MongoDB 操作的複雜性
- 指導您使用 Mongoose、Node.js、MongoDB 和 Express 建立專案管理應用程式
詳細內容
Mongoose 的核心在於將數據模型放在應有的位置:您的應用程式中。您可以在 JavaScript 中從應用程式內部控制所有內容,無需與資料庫或單獨的管理系統進行交互。
《Mongoose for Application Development》是一本實用的手把手指南,帶您從安裝技術堆疊開始,逐步開發網頁應用程式。它涵蓋了 Mongoose 的關鍵特性以及如何使用這些特性快速開發 Node.js 和 MongoDB 應用程式。
這本書介紹了 Node.js、MongoDB、Express 和 Mongoose 的完整技術堆疊。它將引導您通過在這個堆疊上構建應用程式的過程,重點介紹 Mongoose 如何使這個過程更快、更簡單。
您將看到 Mongoose 如何在處理 MongoDB 時消除一層複雜性,同時讓您從應用程式中對數據擁有更多控制權。您將學習如何在 JavaScript 中定義模式和模型。使用這些模式和模型,您將學習如何構建任何網頁應用程式的基石,包括 CRUD 操作(創建、讀取、更新和刪除數據)。如果您想快速有效地學習如何使用 Node.js 構建應用程式,那麼 Mongoose 和這本書將非常適合您。
《Mongoose for Application Development》通過實用範例,不僅教您 Mongoose 的概念,還指導您如何使用它們來構建實際應用程式。
您將從這本書中學到的內容
- 學習使用 Mongoose 連接到資料庫的不同方法
- 學習定義模式和構建數據模型
- 使用模式方法與數據互動
- 創建資料庫、集合和數據
- 查詢資料庫以查找特定數據
- 編輯、保存和刪除數據
- 使用 Mongoose 驗證器驗證數據
- 使用 population 連結數據集
- 使用子文檔和嵌套模式提供數據深度
- 通過可重用插件掌握代碼效率
方法
這本書是一個迷你教程,充滿了代碼範例和策略,為您在使用 MongoDB 構建自己的應用程式時提供了豐富的選擇。
本書的讀者對象
這本書非常適合希望快速有效地在 Node.js 堆疊上開發應用程式的人。對於堆疊的先前知識並不是必需的,因為本書簡要介紹了核心組件的安裝並構建了示例應用程式的所有方面。本書的重點在於 Mongoose 為您的應用程式增添了什麼,因此有經驗的 Node.js 開發者也將受益。