Book description
Create real-time server-side applications with this practical, step-by-step guide
About This Book
- Learn about server-side JavaScript with Node.js and Node modules through the most up-to-date book on Node.js web development
- Understand website development both with and without the Connect/Express web application framework
- Develop both HTTP server and client applications
Who This Book Is For
This book is for anybody looking for an alternative to the "P" languages (Perl, PHP, and Python), or anyone looking for a new paradigm of server-side application development. You should have at least a rudimentary understanding of JavaScript and web application development.
What You Will Learn
- Install and use Node.js for both development and deployment
- Use the Express application framework
- Configure Bootstrap for mobile-first theming
- Use data storage engines such as MySQL, SQLITE3, and MongoDB
- Understand user authentication methods, including OAuth, with third-party services
- Deploy Node.js to live servers, including microservice development with Docker
- Perform unit testing with Mocha
- Perform functional testing of the web application with CasperJS
In Detail
Node.js is a server-side JavaScript platform using an event driven, non-blocking I/O model allowing users to build fast and scalable data-intensive applications running in real time. Node.js Web Development shows JavaScript is not just for browser-side applications. It can be used for server-side web application development, real-time applications, microservices, and much more.
This book gives you an excellent starting point, bringing you straight to the heart of developing web applications with Node.js. You will progress from a rudimentary knowledge of JavaScript and server-side development to being able to create and maintain your own Node.js application. With this book you'll learn how to use the HTTP Server and Client objects, data storage with both SQL and MongoDB databases, real-time applications with Socket.IO, mobile-first theming with Bootstrap, microservice deployment with Docker, authenticating against third-party services using OAuth, and much more.
Style and Approach
This book is a practical guide for anyone looking to develop striking and robust web applications using Node.js.
Table of contents
-
Node.js Web Development Third Edition
- Table of Contents
- Node.js Web Development Third Edition
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
-
1. About Node.js
- The capabilities of Node.js
-
Why should you use Node.js?
- Popularity
- JavaScript at all levels of the stack
- Leveraging Google's investment in V8
- Leaner asynchronous event-driven model
- Microservice architecture
- The Node.js is stronger for having survived a major schism and hostile fork
- Performance and utilization
- Is Node.js a cancerous scalability disaster?
- Server utilization, the bottom line, and green web hosting
- Node.js, the microservice architecture, and easily testable systems
- Node.js and the Twelve-Factor app model
- Summary
-
2. Setting up Node.js
- System requirements
- Installing Node.js using package managers
- Installing from source on POSIX-like systems
- Installing developer tools on Mac OS X
- Node.js versions policy and what to use
- Running and testing commands
- NPM – the Node.js package manager
- Node.js and ECMAScript 6 (ES-2015, ES-2016, and so on)
- Summary
-
3. Node.js Modules
- Defining a module
- Node.js's algorithm for require (module)
-
npm – the Node.js package management system
- The npm package format
- Finding npm packages
-
Other npm commands
- Installing an npm package
- Initializing a new npm package
- Maintaining package dependencies with npm
- Fixing bugs by updating package dependencies
- Declaring Node.js version compatibility
- Updating outdated packages you've installed
- Installing packages from outside the npm repository
- Publishing an npm package
- Package version numbers
- A quick note about CommonJS
- Summary
-
4. HTTP Servers and Clients – A Web Application's First Steps
- Sending and receiving events with EventEmitters
- HTTP server applications
- ES-2015 multiline and template strings
- HTTP Sniffer – listening to the HTTP conversation
- Web application frameworks
- Getting started with Express
- Calculating the Fibonacci sequence with an Express application
- Making HTTP Client requests
- Calling a REST backend service from an Express application
- Summary
- 5. Your First Express Application
- 6. Implementing the Mobile-First Paradigm
- 7. Data Storage and Retrieval
- 8. Multiuser Authentication the Microservice Way
- 9. Dynamic Interaction between Client and Server with Socket.IO
-
10. Deploying Node.js Applications
- Notes application architecture
- Traditional Linux Node.js service deployment
- Node.js microservice deployment with Docker
- Summary
- 11. Unit Testing
- Index
Product information
- Title: Node.js Web Development - Third Edition
- Author(s):
- Release date: June 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785881503
You might also like
book
Node.js Web Development - Fourth Edition
Create real-time applications using Node.js 10, Docker, MySQL, MongoDB, and Socket.IO with this practical guide and …
book
Node.js Web Development
Build scalable web applications using Node.js, Express.js, and the latest ECMAScript techniques, along with deploying applications …
book
Web Development with Node and Express, 2nd Edition
Build dynamic web applications with Express, a key component of the Node/JavaScript development stack. In this …
book
Node.js in Action, Second Edition
Node.js in Action, Second Edition is a thoroughly revised book based on the best-selling first edition. …