چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

Web Development with MongoDB and NodeJS - Second Edition: Build an interactive and full-featured web application from scratch using Node.js and MongoDB

Bruno Joseph D'mello, Jason Krol, Mithun SatheeshIsbn

قیمت نهایی

۴۴٬۰۰۰ تومان۴۹٬۰۰۰ تومان۱۰٪ تخفیف
  • تخفیف زمان‌دار−۵٬۰۰۰ تومان

۵٬۰۰۰ تومان صرفه‌جویی نسبت به قیمت اصلی

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

سال انتشار
۲۰۱۵
فرمت
PDF
زبان
انگلیسی
تعداد صفحات
۵ صفحه
حجم فایل
۷٫۵ مگابایت
شابک
9781322166056، 9781322348520، 9781782161943، 9781782161950، 9781783287338، 9781783287345، 9781783983926، 9781783987306، 9781783987313، 9781785287459، 9781785287527، 1322166056، 1322348529، 1782161945، 1782161953، 1783287330، 1783287349، 1783983922، 1783987308، 1783987316، 1785287451، 1785287524

دربارهٔ کتاب

Node.js and MongoDB are quickly becoming one of the most popular tech stacks for the web. Powered by Google’s V8 engine, Node.js caters to easily building fast, scalable network applications while MongoDB is the perfect fit as a scalable, high-performance, open source NoSQL database solution. Using these two technologies together, web applications can be built quickly and easily and deployed to the cloud with very little difficulty. The book will begin by introducing you to the groundwork needed to set up the development environment. Here, you will quickly run through the steps necessary to get the main application server up and running. Then you will see how to use Node.js to connect to a MongoDB database and perform data manipulations. From here on, the book will take you through integration with third-party tools for interaction with web apps. It then moves on to show you how to use controllers and view models to generate reusable code that will reduce development time. Toward the end of the book, we will cover tests to properly execute the code and some popular frameworks for developing web applications. By the end of the book, you will have a running web application developed with MongoDB and Node.js along with it’s popular frameworks. Cover 1 Copyright 3 Credits 4 About the Authors 5 About the Reviewers 7 www.PacktPub.com 11 Table of Contents 12 Preface 18 Chapter 1: Welcome to JavaScript in the Full Stack 24 A short introduction to Node.js 25 The advantage that the V8 engine brings in 25 Node.js is single threaded! 26 Non-blocking asynchronous execution 26 npm – the Node Package Manager 28 Sharing and reusing JavaScript 28 Not just for building web servers! 29 Real-time web application with Socket.io 29 Networking and file IO 30 The origin of io.js 30 A simple server with Node.js 30 When to use Node.js? 31 The NoSQL movement 31 A short introduction to MongoDB 32 Features of MongoDB 32 Node and MongoDB in the wild 33 What to expect from this book 34 Summary 35 Chapter 2: Getting Up and Running 36 Installing Node.js 37 Mac OS X 37 Windows 39 Linux 40 Testing whether Node.js is installed properly 41 Online documentation 41 Installing Monod 42 Mac OS X installation instructions 42 Windows 7 / Windows 8 installation instructions 43 Linux installation instructions 44 Confirming successful Monod installation 45 Bookmark the online documentation 46 Writing your first app 46 Creating the sample application 46 Getting the dependent modules in place 47 Adding the application code 47 Understanding the code 47 Launching the sample app 50 Checking the actual database 50 Summary 51 Chapter 3: Node and MongoDB Basics 52 A JavaScript primer 52 Syntax basics 53 Data types 54 Understanding the scope of variables 54 Operators and flows 55 Understanding objects 57 Understanding arrays 59 Understanding functions 59 Anonymous functions and callbacks 61 JSON 62 The basics of Node.js 63 Event-driven 63 Asynchronous execution 63 The module system 64 The Node.js core 64 Installing modules using npm 65 The basics of MongoDB 67 The Mongo shell 67 Inserting data 68 Querying 69 Updating data 70 Deleting data 71 Additional resources 71 Summary 72 Chapter 4: Introducing Express 74 Web application frameworks 74 What is Express.js? 75 Building a complete web application 76 Designing the web application 76 Organizing the files 78 Creating the application's entry point 79 Booting up the application 81 Using and understanding middleware 81 The configure module 82 Activating the configure module 84 Routers and controllers 84 Custom middleware 90 Handlebars as view engines 91 Summary 92 Chapter 5: Templating with Handlebars 94 Templating engines 94 Server-side and client-side templating 95 Client-side templating 95 Server-side templating 95 Views 95 Layouts 102 Partial views 104 The basics of Handlebars 106 Binding an object to the template 106 Embedding presentation logic 107 Handlebars helpers 108 Global helpers 108 View-specific helpers 109 Rendering the views 110 Summary 113 Chapter 6: Controllers and View Models 114 Controllers 114 View models 115 Updating the home controller 116 Updating the image controller 119 Displaying an image 119 Uploading an image 121 Helpers for reusable code 126 The sidebar module 126 The stats module 128 The images module 128 The comments module 130 Testing the sidebar implementation 131 Iterating on the UI 131 Summary 135 Chapter 7: Persisting Data with MongoDB 136 Using MongoDB with Node.js 137 Connecting to MongoDB 138 Inserting a document 139 Retrieving a document 140 Introducing Mongoose 141 Schemas 142 Models 143 Built-in validation 145 Static methods 147 Virtual properties 147 Connecting with Mongoose 148 Defining the schemas and models 149 The models index file 151 Adding CRUD to the controllers 152 The home controller 152 The image controller 155 Index – retrieving an image model 155 Create – inserting an image model 159 Testing everything out so far 162 The Like button and updating an image model 165 Comment – inserting a comment model 167 Wrapping it up 169 Helpers 169 Introducing the async module 170 The comments helper 170 The sidebar helper 174 Troubleshooting 176 The stats helper 177 The popular images helper 180 Iterating by adding an image removal capability 181 Adding a route 181 Adding a controller handler 181 Updating the Handlebars image page template 182 Updating jQuery 183 Refactoring and improvements 184 Summary 184 Chapter 8: Creating a RESTful API 186 What is an API? 187 What is a RESTful API? 187 Introducing Postman REST Client 188 Installation instructions 188 A quick tour of Postman REST Client 190 Using the JSONView Chrome extension 193 Creating a basic API server 194 Creating sample JSON data 195 Responding to GET requests 196 Receiving data – POST and PUT requests 198 Removing data – DELETE 203 Consuming external APIs from Node.js 204 Consuming an API endpoint using request 205 Summary 208 Chapter 9: Testing Your Code 210 The tools of the trade 210 Running tests with the Mocha framework 211 Asserting tests with Chai.js 213 Getting started with Chai 214 Spies and stubs with Sinon.js 215 Stubbing node modules with Proxyquire 217 Writing and running your first test 219 Writing a test helper 220 Testing the application 222 Testing the routes 222 Testing the server 225 Testing a model 228 Testing a controller 231 Spy and stub everything! 235 Summary 236 Chapter 10: Deploying with Cloud-Based Services 238 Cloud versus traditional hosting 239 Infrastructure as a Service versus Platform as a Service 239 An introduction to Git 240 Deploying your application 241 Nodejitsu 241 Heroku 247 Amazon Web Services 253 Create a MongoLab account and database 253 Create and configure the AWS environment 255 Microsoft Azure 258 Digital Ocean 263 Summary 265 Chapter 11: Single Page Applications with Popular Frontend Frameworks 266 What is a single page application? 266 Why use a frontend framework? 267 The TodoMVC project 268 Backbone.js 269 Ember.js 271 AngularJS 272 Frontend development tools 273 Automated build task managers 273 Dependency management 275 Modularity 276 HTML template-rendering engines 277 CSS transpiling 277 Testing and test-driven development 279 PhantomJS headless browser 279 Summary 280 Chapter 12 : Popular Node.js Web Frameworks 282 Koa 283 Meteor 283 Sails 285 Hapi 286 Flatiron 287 Summary 288 Index 290 Build an interactive and full-featured web application from scratch using Node.js and MongoDB In Detail Node.js and MongoDB are quickly becoming the most popular technologies in the world of full stack JavaScript development. Powered by Google's V8 JavaScript runtime, Node.js caters to easily building fast, scalable network applications while MongoDB is the perfect fit as a scalable, high-performance, open source NoSQL database solution. Using these two technologies together, web applications can be built quickly and easily and deployed to the cloud with very little difficulty. This book will enable you to leverage the key features of both MongoDB and Node.js in web and mobile app development. Starting with setting up your development environment, it will guide you through how to write your first Node.js web server application from scratch. Along the way, you will learn about best practices and common mistakes while mastering the core concepts of web development. What You Will Learn Set up a development environment and install Node.js and MongoDB Write and configure a web server using Node.js powered by the Express.js framework Build dynamic HTML pages using the Handlebars template engine Persist application data using MongoDB and Mongoose ODM Create and consume RESTful APIs Test your code using automated testing tools Deploy to the cloud using services such as Heroku, Amazon Web Services, and Microsoft Azure Explore Single Page Application frameworks to take your web applications to the next level

In Detail

Node.js has emerged as a strong alternative to PHP, and has taken the world of web development by storm. Node.js is a platform that's used to build fast, scalable network applications using JavaScript as a server-side scripting language.

Starting with an overview of the most popular programming paradigms, you will venture out on a journey to the depths of Node.js, utilizing its capabilities to conceptualize and develop applications using AngularJS, Socket.IO, Backbone.js, Ember.js, and Grunt.

Packed with real-world examples and trade secrets gained from years of experience in the web development domain, this book takes you to the next level and teaches you everything you need to know to utilize the astronomical potential of Node.js. As a JavaScript platform, Node.js can also be used for desktop application development, which you will learn about in the final chapter of this book.

Approach

A straightforward, practical guide containing step-by-step tutorials that will push your Node.js programming skills to the next level.

Who this book is for

If you are a web developer with experience in writing client-side JavaScript and want to discover the fascinating world of Node.js to develop fast and efficient web and desktop applications, then this book is for you.

Node.js has emerged as a strong alternative to PHP, and has taken the world of web development by storm. Node.js is a platform that's used to build fast, scalable network applications using JavaScript as a server-side scripting language. Starting with an overview of the most popular programming paradigms, you will venture out on a journey to the depths of Node.js, utilizing its capabilities to conceptualize and develop applications using AngularJS, Socket.IO, Backbone.js, Ember.js, and Grunt. Packed with real-world examples and trade secrets gained from years of experience in the web development domain, this book takes you to the next level and teaches you everything you need to know to utilize the astronomical potential of Node.js. As a JavaScript platform, Node.js can also be used for desktop application development, which you will learn about in the final chapter of this book. Krasimir Tsonev is a coder with over 10 years of experience in web development. The author of Node.js Blueprints, Packt Publishing, he works with a strong focus on quality and usability. Krasimir is interested in delivering cutting-edge applications. He enjoys working in the software industry and has a passion for creating and discovering new and effective digital experiences.

Node.js and MongoDB are quickly becoming the most popular technologies in the world of full stack JavaScript development. Powered by Google's V8 JavaScript runtime, Node.js caters to easily building fast, scalable network applications while MongoDB is the perfect fit as a scalable, high-performance, open source NoSQL database solution. Using these two technologies together, web applications can be built quickly and easily and deployed to the cloud with very little difficulty.

This book will enable you to leverage the key features of both MongoDB and Node.js in web and mobile app development. Starting with setting up your development environment, it will guide you through how to write your first Node.js web server application from scratch. Along the way, you will learn about best practices and common mistakes while mastering the core concepts of web development.

Key FeaturesBook DescriptionWhat you will learnConfigure your development environment to use Node.js and MongoDBWrite and configure a web server using Node.js powered by the Express.js frameworkBuild dynamic HTML pages using the Handlebars template enginePersist application data using MongoDB and Mongoose ODMTest your code using automated testing tools such as the Mocha frameworkDeploy the development environment to the cloud using services such as Heroku, Amazon Web Services, and Microsoft AzureExplore SinglePage application frameworks to take your web applications to the next levelWho this book is forThis book is designed for JavaScript developers of any skill level that want to get up and running using Node.js and MongoDB to build full-featured web applications. A basic understanding of JavaScript and HTML is the only requirement for this book.

MongoDB is a high-performance and feature-rich NoSQL database that forms the backbone of numerous complex development systems. You will certainly find the MongoDB solution you are searching for in this book.

Starting with how to initialize the server in three different modes with various configurations, you will then learn a variety of skills including the basics of advanced query operations and features in MongoDB and monitoring and backup using MMS. From there, you can delve into recipes on cloud deployment, integration with Hadoop, and improving developer productivity. By the end of this book, you will have a clear idea about how to design, develop, and deploy MongoDB.

MongoDB is a high-performance and feature-rich NoSQL database that forms the backbone of numerous complex development systems. You will certainly find the MongoDB solution you are searching for in this book. Starting with how to initialize the server in three different modes with various configurations, you will then learn a variety of skills including the basics of advanced query operations and features in MongoDB and monitoring and backup using MMS. From there, you can delve into recipes on cloud deployment, integration with Hadoop, and improving developer productivity. By the end of this book, you will have a clear idea about how to design, develop, and deploy MongoDB. Annotation If you want a reference to show you practical solutions, or just want to satisfy your need for more knowledge of this fantastic NoSQL database, then this book is ideal for you. To get the most out of this book, you should know the basics of MongoDB This book is designed for developers of any skill level that want to get up and running using Node.js and MongoDB to build full featured web applications. A basic understanding of JavaScript and HTML is the only requirement for this book.

کتاب‌های مشابه

Web Development with MongoDB and NodeJS - Second Edition: Build an interactive and full-featured web application from scratch using Node.js and MongoDB

Web Development with MongoDB and NodeJS - Second Edition: Build an interactive and full-featured web application from scratch using Node.js and MongoDB

۴۹٬۰۰۰ تومان

Web Development with MongoDB and NodeJS : Build an Interactive and Full-featured Web Application From Scratch Using Node.js and MongoDB

Web Development with MongoDB and NodeJS : Build an Interactive and Full-featured Web Application From Scratch Using Node.js and MongoDB

۴۹٬۰۰۰ تومان

Web Development with MongoDB and NodeJS, 2nd Edition: Build an interactive and full-featured web application from scratch using Node.js and MongoDB

Web Development with MongoDB and NodeJS, 2nd Edition: Build an interactive and full-featured web application from scratch using Node.js and MongoDB

۴۹٬۰۰۰ تومان

Web development with MongoDB and Node.js : build an interactive and full-featured web application from scratch using Node.js and MongoDB

Web development with MongoDB and Node.js : build an interactive and full-featured web application from scratch using Node.js and MongoDB

۴۹٬۰۰۰ تومان

Web development with MongoDB and Node.js : build an interactive and full-featured web application from scratch using Node.js and MongoDB

Web development with MongoDB and Node.js : build an interactive and full-featured web application from scratch using Node.js and MongoDB

۴۹٬۰۰۰ تومان

Web development with MongoDB and Node.js : build an interactive and full-featured web application from scratch using Node.js and MongoDB

Web development with MongoDB and Node.js : build an interactive and full-featured web application from scratch using Node.js and MongoDB

۴۹٬۰۰۰ تومان

Web Development with MongoDB and Node - Third Edition : Use the Two Popular Web Development Stacks, Node.js and MongoDB, to Build Full-featured Web Applications

Web Development with MongoDB and Node - Third Edition : Use the Two Popular Web Development Stacks, Node.js and MongoDB, to Build Full-featured Web Applications

۴۹٬۰۰۰ تومان

Web Development with MongoDB and Node - Third Edition : Use the Two Popular Web Development Stacks, Node.js and MongoDB, to Build Full-featured Web Applications

Web Development with MongoDB and Node - Third Edition : Use the Two Popular Web Development Stacks, Node.js and MongoDB, to Build Full-featured Web Applications

۴۹٬۰۰۰ تومان

Full Stack Angularjs for Java Developers : build a full-featured web application from scratch ... using angularjs with spring restful

Full Stack Angularjs for Java Developers : build a full-featured web application from scratch ... using angularjs with spring restful

۴۹٬۰۰۰ تومان

Node.js for Beginners - A comprehensive guide to building efficient, full-featured web applications with Node.js

Node.js for Beginners - A comprehensive guide to building efficient, full-featured web applications with Node.js

۴۹٬۰۰۰ تومان

Node.js, MongoDB and Angular Web Development: The definitive guide to using the MEAN stack to build web applications (2nd Edition) (Developer's Library)

Node.js, MongoDB and Angular Web Development: The definitive guide to using the MEAN stack to build web applications (2nd Edition) (Developer's Library)

۴۹٬۰۰۰ تومان

Web Development with MongoDB and Node.js (Code Only)

Web Development with MongoDB and Node.js (Code Only)

۴۹٬۰۰۰ تومان

قیمت نهایی

۴۴٬۰۰۰ تومان