最新章節
- Summary
- PhantomJS headless browser
- Testing and test-driven development
- CSS transpiling
- HTML template-rendering engines
- Modularity
品牌:中圖公司
上架時間:2021-07-08 09:22:53
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Summary 更新時間:2021-07-08 10:33:22
- PhantomJS headless browser
- Testing and test-driven development
- CSS transpiling
- HTML template-rendering engines
- Modularity
- Dependency management
- Automated build task managers
- Frontend development tools
- Component communication
- Forms
- Services
- Angular data flow architecture
- Modules and components
- Understanding TypeScript and es6
- Scaffolding the Angular app
- Angular
- React.js
- Ember.js
- Backbone.js
- The TodoMVC project
- What is a single page application?
- Why use a frontend framework?
- Single Page Applications with Popular Frontend Frameworks
- Summary
- Creating a configuration-based architecture
- Creating APIs
- Setting up a server
- Scaffolding the Hapi app
- Kick starting Hapi.js
- Hapi
- LoopBack
- total.js
- Flatiron
- Sails
- Meteor
- Koa
- Popular Node.js Web Frameworks
- Summary
- Digital Ocean
- Microsoft Azure
- Create and configure the AWS environment
- Creating a MongoLab account and database
- Amazon Web Services
- Heroku
- Nodejitsu
- Deploying your application
- An introduction to Git
- Infrastructure as a Service versus Platform as a Service
- Cloud versus traditional hosting
- Deploying with Cloud-Based Services
- Summary
- Automating everything
- Spy and stub everything!
- Testing a controller
- Testing a model
- Testing the server
- Testing the routes
- Testing the application
- Writing a test helper
- Writing and running your first test
- Stubbing node modules with Proxyquire
- Spies and stubs with Sinon.js
- Getting started with Chai
- Asserting tests with Chai.js
- Running tests with the Mocha framework
- The tools of the trade
- Testing Your Code
- Summary
- Consuming an API endpoint using request
- Consuming external APIs from Node.js
- Removing data - DELETE
- Receiving data - POST and PUT requests
- Responding to GET requests
- Creating sample JSON data
- Creating a basic API server
- Using the JSONView Chrome extension
- A quick tour of Postman REST Client
- Installation instructions
- Introducing Postman REST Client
- What is a RESTful API?
- What is an API?
- Creating a RESTful API
- Summary
- Refactoring and improvements
- Updating jQuery
- Updating the Handlebars image page template
- Adding a controller handler
- Adding a route
- Iterating by adding an image removal capability
- The popular images helper
- The stats helper
- Troubleshooting
- The sidebar helper
- The comments helper
- Introducing the async module
- Helpers
- Wrapping it up
- Comment - inserting a comment model
- The like button and updating an image model
- Testing everything out so far
- Create - inserting an image model
- Index - retrieving an image model
- The image controller
- The home controller
- Adding CRUD to the controllers
- The models index file
- Defining the schemas and models
- Connecting with Mongoose
- Context of method (this)
- Virtual properties
- Static methods
- Built-in validation
- Models
- Schemas
- Introducing Mongoose
- Retrieving a document
- Inserting a document
- Connecting to MongoDB
- Using MongoDB with Node.js
- Persisting Data with MongoDB
- Summary
- Iterating on the UI
- Testing the sidebar implementation
- The comments module
- The images module
- The stats module
- The sidebar module
- Helpers for reusable code
- Uploading an image
- Displaying an image
- Updating the image controller
- Updating the home controller
- View models
- Controllers
- Controllers and View Models
- Summary
- Rendering the views
- View-specific helpers
- Global helpers
- Handlebars helpers
- Partial views
- Layouts
- Views
- Embedding presentation logic
- Binding an object to the template
- The basics of Handlebars
- Server-side templating
- Client-side templating
- Server-side and client-side templating
- Templating engines
- Templating with Handlebars
- Summary
- Handlebars as View engines
- Routers and controllers
- Activating the configure module
- The configure module
- Order of middlewares
- Creating custom middleware
- Middlewares
- Booting up the application
- Creating the application's entry point
- Organizing the files
- Designing the web application
- Building a complete web application
- What is Express.js?
- Web application frameworks
- Introducing Express
- Summary
- Additional resources
- Deleting data
- Updating data
- Querying
- Inserting data
- The Mongo shell
- The basics of MongoDB
- Installing modules using npm
- Streams
- Net
- HTTP
- The Node.js core
- The module system
- Asynchronous execution
- Event-driven
- Node.js architecture
- The basics of Node.js
- JSON
- Anonymous functions and callbacks
- Understanding functions
- Understanding arrays
- Understanding objects
- Operators and flows
- Data types
- Understanding the scope of variables
- Syntax basics
- Introducing es6
- A JavaScript primer
- Node and MongoDB Basics
- Summary
- Checking the actual database
- Launching the sample app
- Understanding the code
- Adding the application code
- Getting the dependent modules in place
- Creating the sample application
- Writing your first app
- Bookmarking the online documentation
- Confirming successful MongoDB installation
- Linux installation instructions
- Windows 7/Windows 8 installation instructions
- Mac OS X installation instructions
- Installing MongoDB
- Online documentation
- Testing that Node.js is installed properly
- Linux
- Windows
- Mac OS X
- Installing Node.js
- Getting Up and Running
- Summary
- What to expect from this book
- Node.js and MongoDB in the wild
- Various performance facets
- Schema-less design
- JSON-friendly database
- A short introduction to MongoDB
- The NoSQL movement
- When to use Node.js
- A simple server with Node.js
- Internet of things (IoT)
- Microservices
- Networking and file IO
- Real-time web application with Socket.io
- Not just for building web servers!
- Sharing and reusing JavaScript
- npm - the Node Package Manager
- Non-blocking asynchronous execution
- Node.js is single-threaded!
- The advantage that the V8 engine brings in
- A short introduction to Node.js
- Welcome to JavaScript in the Full Stack
- Questions
- Piracy
- Errata
- Downloading the example code
- Customer support
- Reader feedback
- Conventions
- Who this book is for
- What you need for this book
- What this book covers
- Preface
- Customer Feedback
- Why subscribe?
- www.PacktPub.com
- About the Reviewer
- About the Authors
- Credits
- Third Edition
- Web Development with MongoDB and Node
- Copyright
- Third Edition
- Title Page
- coverpage
- coverpage
- Title Page
- Third Edition
- Copyright
- Web Development with MongoDB and Node
- Third Edition
- Credits
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Why subscribe?
- Customer Feedback
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- Welcome to JavaScript in the Full Stack
- A short introduction to Node.js
- The advantage that the V8 engine brings in
- Node.js is single-threaded!
- Non-blocking asynchronous execution
- npm - the Node Package Manager
- Sharing and reusing JavaScript
- Not just for building web servers!
- Real-time web application with Socket.io
- Networking and file IO
- Microservices
- Internet of things (IoT)
- A simple server with Node.js
- When to use Node.js
- The NoSQL movement
- A short introduction to MongoDB
- JSON-friendly database
- Schema-less design
- Various performance facets
- Node.js and MongoDB in the wild
- What to expect from this book
- Summary
- Getting Up and Running
- Installing Node.js
- Mac OS X
- Windows
- Linux
- Testing that Node.js is installed properly
- Online documentation
- Installing MongoDB
- Mac OS X installation instructions
- Windows 7/Windows 8 installation instructions
- Linux installation instructions
- Confirming successful MongoDB installation
- Bookmarking the online documentation
- Writing your first app
- Creating the sample application
- Getting the dependent modules in place
- Adding the application code
- Understanding the code
- Launching the sample app
- Checking the actual database
- Summary
- Node and MongoDB Basics
- A JavaScript primer
- Introducing es6
- Syntax basics
- Understanding the scope of variables
- Data types
- Operators and flows
- Understanding objects
- Understanding arrays
- Understanding functions
- Anonymous functions and callbacks
- JSON
- The basics of Node.js
- Node.js architecture
- Event-driven
- Asynchronous execution
- The module system
- The Node.js core
- HTTP
- Net
- Streams
- Installing modules using npm
- The basics of MongoDB
- The Mongo shell
- Inserting data
- Querying
- Updating data
- Deleting data
- Additional resources
- Summary
- Introducing Express
- Web application frameworks
- What is Express.js?
- Building a complete web application
- Designing the web application
- Organizing the files
- Creating the application's entry point
- Booting up the application
- Middlewares
- Creating custom middleware
- Order of middlewares
- The configure module
- Activating the configure module
- Routers and controllers
- Handlebars as View engines
- Summary
- Templating with Handlebars
- Templating engines
- Server-side and client-side templating
- Client-side templating
- Server-side templating
- The basics of Handlebars
- Binding an object to the template
- Embedding presentation logic
- Views
- Layouts
- Partial views
- Handlebars helpers
- Global helpers
- View-specific helpers
- Rendering the views
- Summary
- Controllers and View Models
- Controllers
- View models
- Updating the home controller
- Updating the image controller
- Displaying an image
- Uploading an image
- Helpers for reusable code
- The sidebar module
- The stats module
- The images module
- The comments module
- Testing the sidebar implementation
- Iterating on the UI
- Summary
- Persisting Data with MongoDB
- Using MongoDB with Node.js
- Connecting to MongoDB
- Inserting a document
- Retrieving a document
- Introducing Mongoose
- Schemas
- Models
- Built-in validation
- Static methods
- Virtual properties
- Context of method (this)
- Connecting with Mongoose
- Defining the schemas and models
- The models index file
- Adding CRUD to the controllers
- The home controller
- The image controller
- Index - retrieving an image model
- Create - inserting an image model
- Testing everything out so far
- The like button and updating an image model
- Comment - inserting a comment model
- Wrapping it up
- Helpers
- Introducing the async module
- The comments helper
- The sidebar helper
- Troubleshooting
- The stats helper
- The popular images helper
- Iterating by adding an image removal capability
- Adding a route
- Adding a controller handler
- Updating the Handlebars image page template
- Updating jQuery
- Refactoring and improvements
- Summary
- Creating a RESTful API
- What is an API?
- What is a RESTful API?
- Introducing Postman REST Client
- Installation instructions
- A quick tour of Postman REST Client
- Using the JSONView Chrome extension
- Creating a basic API server
- Creating sample JSON data
- Responding to GET requests
- Receiving data - POST and PUT requests
- Removing data - DELETE
- Consuming external APIs from Node.js
- Consuming an API endpoint using request
- Summary
- Testing Your Code
- The tools of the trade
- Running tests with the Mocha framework
- Asserting tests with Chai.js
- Getting started with Chai
- Spies and stubs with Sinon.js
- Stubbing node modules with Proxyquire
- Writing and running your first test
- Writing a test helper
- Testing the application
- Testing the routes
- Testing the server
- Testing a model
- Testing a controller
- Spy and stub everything!
- Automating everything
- Summary
- Deploying with Cloud-Based Services
- Cloud versus traditional hosting
- Infrastructure as a Service versus Platform as a Service
- An introduction to Git
- Deploying your application
- Nodejitsu
- Heroku
- Amazon Web Services
- Creating a MongoLab account and database
- Create and configure the AWS environment
- Microsoft Azure
- Digital Ocean
- Summary
- Popular Node.js Web Frameworks
- Koa
- Meteor
- Sails
- Flatiron
- total.js
- LoopBack
- Hapi
- Kick starting Hapi.js
- Scaffolding the Hapi app
- Setting up a server
- Creating APIs
- Creating a configuration-based architecture
- Summary
- Single Page Applications with Popular Frontend Frameworks
- Why use a frontend framework?
- What is a single page application?
- The TodoMVC project
- Backbone.js
- Ember.js
- React.js
- Angular
- Scaffolding the Angular app
- Understanding TypeScript and es6
- Modules and components
- Angular data flow architecture
- Services
- Forms
- Component communication
- Frontend development tools
- Automated build task managers
- Dependency management
- Modularity
- HTML template-rendering engines
- CSS transpiling
- Testing and test-driven development
- PhantomJS headless browser
- Summary 更新時間:2021-07-08 10:33:22