封面
版权页
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Backend Development with Express
Node.js and Node Package Manager
Using Express in Node
Using middleware in Express
Adding templates to the mix
Using sessions in Express
Processing forms
Very simple authentication
Setting up a config file for our app
Methods to extend an application
Summary
Chapter 2. Extending Our Development with Socket.IO
Node package versions
Building a simple Socket.IO app
Broadcasting a message
Using the disconnect event
Creating namespaces
Adding rooms
Using namespaces or rooms
Using namespaces and rooms together
Using Socket.IO and Express together
Adding application-specific events
Using Redis as the store for Socket.IO
Socket.IO inner workings
Ideas to take away from this chapter
Summary
Chapter 3. Authenticating Users
Node package versions
Let's build our authentication
Registering a Facebook application
Using Passport to authenticate to Facebook
Using Google for authentication
Adding Google authentication to our application
Adding more OAuth providers
Adding secure local authentication
Password-storing theory
OAuth process
Summary
Chapter 4. RabbitMQ for Message Queuing
Node package versions
Getting RabbitMQ
Our first message queue
Sending messages back
Adding message queues to PacktChat
Message queuing in RabbitMQ
Summary
Chapter 5. Adopting Redis for Application Data
Node package versions
Installing Redis
Using Redis data structures
Redis schema
Redis persistence
Using Redis as a message queue
Adding Redis to PacktChat
Redis is for application state
Summary
Chapter 6. Using Bower to Manage Our Frontend Dependencies
Node package versions
Installing and using Bower
Introducing React
Introducing Backbone
Summary
Chapter 7. Using Backbone and React for DOM Events
Bower package versions
Finishing Socket.IO
Creating React components
Backbone models
The Backbone router
Putting it all together
Updating CSS and the layout
Adding a new worker
Trying out our application
Summary
Chapter 8. JavaScript Best Practices for Application Development
Node package versions
Setting up tests
Setting up different environments
Introducing Grunt
Static files and CDNs
Scripting our new tools
Summary
Chapter 9. Deployment and Scalability
Creating servers on EC2
What is Ansible?
Scalability
Summary
Chapter 10. Debugging and Troubleshooting
Node packages
Using Chrome Developer Tools
Inspecting requests
Debugging
CPU profiling our application
Taking heap snapshots
Summary
Index
更新时间:2021-08-05 17:49:22