Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Node.js 8 the Right Way
About the Pragmatic Bookshelf
Table of Contents
Early praise for Node.js 8 the Right Way
Acknowledgments
Preface
Why Node.js the Right Way?
What’s in This Book
What This Book Is Not
Code Examples and Conventions
Online Resources
Pa rt 1 Getting Up to Speed on Node.js 8
Chapter 1: Getting Started
Thinking Beyond the web
Node.js’s Niche
How Node.js Applications Work
Aspects of Node.js Development
Installing Node.js
Chapter 2: Wrangling the File System
Programming for the Node.js Event Loop
Spawning a Child Process
Capturing Data from an EventEmitter
Reading and Writing Files Asynchronously
The Two Phases of a Node.js Program
Wrapping Up
Chapter 3: Networking with Sockets
Listening for Socket Connections
Implementing a Me ssaging Protocol
Creating Socket Client Connections
Testing Network Application Functionality
Extending Core Classes in Custom Modules
Developing Unit Tests with Mocha
Wrapping Up
Chapter 4: Connecting Robust Microservices
Installing ØMQ
Publishing and Subscribing to Messages
Responding to Requests
Routing and Dealing Messages
Clustering Node.js Processes
Pushing and Pulling Messages
Wrapping Up
Part 2: Working with Data
Chapter 5: Transforming Data and Testing Continuously
Procuring External Data
Behavior-Driven Development with Mocha and Ch ai
Extracting Data from XML with Cheerio
Processing Data Files Sequent ially
Debugging Tests with Chrome DevTools
Wrapping Up
Chapter 6: Commanding Databases
Introducing Elasticsearch
Creating a Command-Line Program in Node.js wi th Commander
Using request to Fetch JSON over HTTP
Shaping JSON with jq
Inserting Elasticsearch Documents in Bulk
Implementing an Elasticsearch Query Command
Wrapping Up
Part 3: Creating an Application from the Ground Up
Chapter 7: Developing RESTful Web Services
Advantages of Express
Serving APIs with Express
Writing Modular Ex press Services
Keeping Services Running with nodemon
Adding Search APIs
Simplifying Code Flows with Promises
Manipulating Documents RESTf ully
Emulating Synchronous Style with async and aw ait
Providing an Async Handler Function t o Express
Wrapping Up
Chapter 8: Creating a Beautiful User Experience
Getting Started with webpack
Generating Your First webpack Bundle
Sprucing Up Your UI with Bootstrap
Bringing in Bootstrap JavaScript and jQuery
Transpiling with TypeSc ript
Templating HTML with Handlebars
Implementing hashChange Navigation
Listing Objects in a View
Saving Data with a Form
Wrapping Up
Chapter 9: Fortifying Your Application
Setting Up the Initial Project
Managing User Sessions in Express
Adding Authentication UI Elements
Setting Up Passport
Authenticating with Facebook, Twitter, and Go ogle
Composing an Express Router
Bringing in the Book Bundle UI
Serving in Production
Wrapping Up
Chapter 10: BONUS: Developing Flows with Node-RED
Setting Up Node-RED
Securing Node-RED
Developing a Node-RED Flow
Creating HTTP APIs with Node-RED
Handling Errors in Node-RED Flows
Wrapping Up
Appendix 1: Setting Up Angular
Appendix 2: Setting Up React
You May Be Interested In…
← Prev
Back
Next →
← Prev
Back
Next →