Title Statements
- Full title :Mongoose for Application Development.
Summary
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. 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.
Read More ↓Edition Statements
- Publication Date:2013.
Publication Statements
- Publisher(s):Packt Publishing
- Language:eng
- Publication Date:2013.
The Physical Object
- Description:1 online resource
Edition Identifiers
- ISBN:1299832377, 9781299832374, 9781782168201, 1782168206, 9781782168195, 1782168192
- oclc:ocn857712048
- LC Classification:QA76.76.A65 .H384 2013
- Dewey Decimal:005.7585
Table of Contents
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introducing Mongoose to the Technology Stack; The technology stack -- Node.js, npm, MongoDB, and Express; The language and the server -- JavaScript and Node; Single-threaded versus multithreaded; Blocking versus non-blocking code; The database -- MongoDB; The framework -- Express; What Mongoose is all about; What is Mongoose good for?; What Mongoose is not ideally suited for; The cornerstones of Mongoose; Mongoose schemas; Mongoose models; Installing the full stack.
Installing the prerequisitesInstalling Node.js; Installing npm; Installing MongoDB; Installing Express.js; Installing Mongoose; Direct installation into project; Using project dependencies -- package.json; Creating a project; Summary; Chapter 2: Establishing a Database Connection; Mongoose default connection; Using multiple connections; About the connection string; Setting the port; Specifying a database user; Connection options; Closing the connection; Calling the close command; Closing when the Node process ends; Connection events; Connecting our project; Creating the connection.
Catching the e…
Rate & Review