更新时间:2021-08-05 17:49:22
封面
版权页
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
Chapter 3. Authenticating Users
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
Chapter 4. RabbitMQ for Message Queuing
Getting RabbitMQ
Our first message queue
Sending messages back
Adding message queues to PacktChat
Message queuing in RabbitMQ
Chapter 5. Adopting Redis for Application Data
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
Chapter 6. Using Bower to Manage Our Frontend Dependencies
Installing and using Bower
Introducing React
Introducing Backbone
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
Chapter 8. JavaScript Best Practices for Application Development
Setting up tests
Setting up different environments
Introducing Grunt
Static files and CDNs
Scripting our new tools
Chapter 9. Deployment and Scalability
Creating servers on EC2
What is Ansible?
Scalability