- ホーム
- > 洋書
- > 英文書
- > Computer / Languages
Full Description
Node.js, MongoDB and AngularJS Web DevelopmentThe definitive guide to building using the MEAN stack to build web applicationsAlso known as the MEAN stack, Node.js, MongoDB, and AngularJS are three new web development technologies that together provide an easy to implement, fully integrated web development stack. Node.js is a leading server-side programming environment, MongoDB is the most popular NoSQL database, and AngularJS is quickly becoming the leading framework for MVC-based front-end development. Together they allow web programmers to create high-performance sites and applications built completely in JavaScript, from server to client.Node.js, MongoDB and AngularJS Web Development is a complete guide for web programmers who want to integrate these three technologies into full working solutions. It begins with concise, crystal-clear tutorials on each of the three technologies and then quickly moves on to building several common web applications.Readers will learn how to use Node.js and MongoDB to build more scalable, high-performance sites, how to leverage AngularJS's innovative MVC approach to structure more effective pages and applications, and how to use all three together to deliver outstanding next-generation Web solutions.Implement a highly scalable and dynamic web server using Node.js and ExpressBuild server-side web services in JavaScriptImplement a MongoDB data store for your web applicationsAccess and interact with MongoDB from Node.js JavaScript codeDefine static and dynamic web routes and implement server-side scripts to support themImplement Express in Node.jsCreate Jade templatesDefine your own custom AngularJS directives that extend the HTML languageImplement client-side services that can interact with the Node.js web serverBuild dynamic browser views that provide rich user interactionAdd authenticated user accounts to your web applicationsAdd nested comment components to your web pagesBuild an end-to-end shopping cartContents at a GlancePart I: Getting Started1 Introducing the Node.js-to-AngularJS Stack2 JavaScript PrimerPart II: Learning Node.js3 Getting Started with Node.js4 Using Events, Listeners, Timers, and Callbacks in Node.js5 Handling Data I/O in Node.js6 Accessing the File System from Node.js7 Implementing HTTP Services in Node.js8 Implementing Socket Services in Node.js9 Scaling Applications Using Multiple Processors in Node.js10 Using Additional Node.js ModulesPart III: Learning MongoDB11 Understanding NoSQL and MongoDB12 Getting Started with MongoDB13 Getting Started with MongoDB and Node.js14 Manipulating MongoDB Documents from Node.js15 Accessing MongoDB Documents from Node.js16 Using Mongoose for Structured Schema and Validation17 Advanced MongoDB ConceptsPart IV: Using Express to Make Life Easier18 Implementing Express in Node.js19 Implementing Express MiddlewarePart V: Learning AngularJS20 Getting Started with AngularJS21 Understanding AngularJS Modules and Dependency Injection22 Implementing the Scope as a Data Model23 Using AngularJS Templates to Create Views24 Implementing Directives in AngularJS Views25 Implementing AngularJS Services in Web ApplicationsPart VI: Building Practical Web Application Components26 Adding User Accounts to Your Website27 Adding Comment Threads to Pages28 Creating Your Own Shopping Cart29 Building Interactive Web 2.0 Application Components
Contents
Introduction?Part I: Getting Started?1 Introducing the Node.js-to-AngularJS StackUnderstanding the Basic Web Development Framework ?Understanding the Node.js-to-AngularJS Stack Components?2 JavaScript PrimerDefining VariablesUnderstanding JavaScript Data TypesUsing OperatorsImplementing LoopingCreating FunctionsUnderstanding Variable ScopeUsing JavaScript ObjectsManipulating StringsWorking with ArraysAdding Error HandlingPart II: Learning Node.js?3 Getting Started with Node.jsUnderstanding Node.jsInstalling Node.jsWorking with Node.js PackagesCreating a Node.js ApplicationWriting Data to the Console4 Using Events, Listeners, Timers, and Callbacks in Node.jsUnderstanding the Node.js Event ModelAdding Work to the Event QueueImplementing Callbacks5 Handling Data I/O in Node.jsWorking with JSONUsing the Buffer Module to Buffer DataUsing the Stream Module to Stream DataCompressing and Decompressing Data with Zlib6 Accessing the File System from Node.jsSynchronous Versus Asynchronous File System CallsOpening and Closing FilesWriting FilesReading FilesOther File System Tasks7 Implementing HTTP Services in Node.jsProcessing URLsProcessing Query Strings and Form ParametersUnderstanding Request, Response, and Server ObjectsImplementing HTTP Clients and Servers in Node.jsImplementing HTTPS Servers and Clients8 Implementing Socket Services in Node.jsUnderstanding Network SocketsUnderstanding TCP Server and Socket ObjectsImplementing TCP Socket Servers and ClientsImplementing TLS Servers and Clients9 Scaling Applications Using Multiple Processors in Node.jsUnderstanding the process ModuleImplementing Child ProcessesImplementing Process Clusters10 Using Additional Node.js ModulesUsing the os ModuleUsing the util ModulePart III: Learning MongoDB?11 Understanding NoSQL and MongoDBWhy NoSQL?Understanding MongoDBMongoDB Data TypesPlanning Your Data Model12 Getting Started with MongoDBBuilding the MongoDB EnvironmentAdministering User AccountsConfiguring Access ControlAdministering DatabasesManaging Collections13 Getting Started with MongoDB and Node.jsAdding the MongoDB Driver to Node.jsConnecting to MongoDB from Node.jsUnderstanding the Objects Used in the MongoDB Node.js DriverAccessing and Manipulating DatabasesAccessing and Manipulating Collections14 Manipulating MongoDB Documents from Node.jsUnderstanding Database Change OptionsUnderstanding Database Update OperatorsAdding Documents to a CollectionGetting Documents from a CollectionUpdating Documents in a CollectionAtomically Modifying Documents in a CollectionSaving Documents in a CollectionUsing upsert to Insert Documents in a CollectionDeleting Documents from a CollectionRemoving a Single Document from a Collection15 Accessing MongoDB Documents from Node.jsIntroducing the Data SetUnderstanding Query ObjectsUnderstanding Query options ObjectsFinding Specific Sets of DocumentsCounting DocumentsLimiting Result SetsSorting Result SetsFinding Distinct Field ValuesGrouping ResultsApplying MapReduce by Aggregating Results16 Using Mongoose for Structured Schema and ValidationUnderstanding MongooseConnecting to a MongoDB Database by Using MongooseDefining a SchemaCompiling a ModelUnderstanding the Query ObjectUnderstanding the Document ObjectFinding Documents by Using MongooseAdding Documents by Using MongooseUpdating Documents by Using MongooseRemoving Documents by Using MongooseAggregating Documents by Using MongooseUsing the Validation FrameworkImplementing Middleware Functions17 Advanced MongoDB ConceptsAdding IndexesUsing Capped CollectionsApplying ReplicationImplementing ShardingImplementing a GridFS StoreRepairing a MongoDB DatabaseBacking Up MongoDBPart IV: Using Express to Make Life Easier?18 Implementing Express in Node.jsGetting Started with ExpressConfiguring RoutesUsing Request ObjectsUsing Response ObjectsImplementing a Template Engine19 Implementing Express MiddlewareUnderstanding MiddlewareUsing the query MiddlewareServing Static FilesHandling POST Body DataSending and Receiving CookiesImplementing SessionsApplying Basic HTTP AuthenticationImplementing Session AuthenticationCreating Custom MiddlewarePart V: Learning AngularJS?20 Getting Started with AngularJSWhy AngularJS?Understanding AngularJSAn Overview of the AngularJS Life CycleIntegrating AngularJS with Existing JavaScript and jQueryAdding AngularJS to the Node.js EnvironmentBootstrapping AngularJS in an HTML DocumentUsing the Global APIsCreating a Basic AngularJS Application21 Understanding AngularJS Modules and Dependency InjectionOverview of Modules and Dependency InjectionDefining AngularJS ModulesImplementing Dependency Injection22 Implementing the Scope as a Data ModelUnderstanding ScopesImplementing Scope HierarchyEmitting and Broadcasting Events23 Using AngularJS Templates to Create ViewsUnderstanding TemplatesUsing ExpressionsUsing FiltersCreating Custom Filters24 Implementing Directives in AngularJS ViewsUnderstanding DirectivesUsing Built-in DirectivesCreating Your Own Directives to Extend HTML25 Implementing AngularJS Services in Web ApplicationsUnderstanding AngularJS ServicesUsing the Built-in ServicesCreating Custom ServicesPart VI: Building Practical Web Application Components?26 Adding User Accounts to Your WebsiteLibraries UsedProject Directory StructureDefining the User ModelCreating the ServerImplementing RoutesImplementing the User Controller RoutesImplementing the User and Authentication ViewsImplementing the AngularJS Module and ControllerUsing Social Media Accounts as Authentication Sources27 Adding Comment Threads to PagesLibraries UsedProject Directory StructureDefining the Comment, Reply, Photo, and Page ModelsCreating the Comments ServerImplementing Routes to Support Viewing and Adding CommentsImplementing the Model-Based Controller RoutesImplementing Photo and Comment ViewsImplementing the AngularJS Module and Controller to Support Comment ViewsInitializing the Application28 Creating a Shopping CartProject DescriptionLibraries UsedProject Directory StructureDefining the Customer, Product, and Orders ModelsCreating the Shopping Cart ServerImplementing Routes to Support Product, Cart, and Order RequestsImplementing the Model-Based Controller RoutesImplementing Shopping Cart and Checkout ViewsImplementing the AngularJS Module and Controller to Support Shopping Cart ViewsInitializing the Application29 Building Interactive Web 2.0 Application ComponentsProject DescriptionLibraries UsedProject Directory StructureDefining the Project ModelCreating the Application ServerImplementing Routes to Support the ViewsImplementing a Tabbed ViewImplementing a Weather Service ViewImplementing Draggable ElementsImplementing Dynamic Data AccessInitializing the Application