Learning Node.js for .NET Developers

Solve practical real-world problems using JavaScript and Node.js
Preview in Mapt

Learning Node.js for .NET Developers

Harry Cummings

1 customer reviews
Solve practical real-world problems using JavaScript and Node.js

Quick links: > What will you learn?> Table of content> Product reviews

eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$16.80
$29.99
RRP $23.99
RRP $29.99
eBook
Print + eBook

Frequently bought together


Learning Node.js for .NET Developers Book Cover
Learning Node.js for .NET Developers
$ 23.99
$ 16.80
ASP.NET Core and Angular 2 Book Cover
ASP.NET Core and Angular 2
$ 35.99
$ 25.20
Buy 2 for $34.30
Save $25.68
Add to Cart

Book Details

ISBN 139781785280092
Paperback248 pages

Book Description

Node.js is an open source, cross-platform runtime environment that allows you to use JavaScript to develop server-side web applications.

This short guide will help you develop applications using JavaScript and Node.js, leverage your existing programming skills from .NET or Java, and make the most of these other platforms through understanding the Node.js programming model. You will learn how to build web applications and APIs in Node, discover packages in the Node.js ecosystem, test and deploy your Node.js code, and more. Finally, you will discover how to integrate Node.js and .NET code.

Table of Contents

Chapter 1: Why Node.js?
What is Node.js?
Why JavaScript?
When to use Node.js
Summary
Chapter 2: Getting Started with Node.js
Installing and running Node.js
Choosing an editor
Using an application framework
Summary
Chapter 3: A JavaScript Primer
Introducing JavaScript types
Functional object-oriented programming
Summary
Chapter 4: Introducing Node.js Modules
Organizing your codebase
Creating modules in Node.js
Defining a directory-level module
Implementing an Express middleware module
Summary
Chapter 5: Creating Dynamic Websites
Handling user-submitted data
Communicating via Ajax
Implementing other data operations
Summary
Chapter 6: Testing Node.js Applications
Writing a simple test in Node.js
Structuring the codebase for tests
Writing BDD-style tests with Mocha
Using Chai for assertions
Creating test doubles
Testing an Express application
Full-stack testing with PhantomJS
Summary
Chapter 7: Setting up an Automated Build
Setting up an integration server
Automating the build process with Gulp
Checking code style with ESLint
Gathering code coverage statistics
Running integration tests from Gulp
Summary
Chapter 8: Mastering Asynchronicity
Using the callback pattern for asynchronous code
Writing cleaner asynchronous code using promises
Combining asynchronous programming patterns
Summary
Chapter 9: Persisting Data
Introducing MongoDB
Using MongoDB with Express
Introducing Redis
Building a user ranking system with Redis
A note on security
Summary
Chapter 10: Creating Real-time Web Apps
Understanding options for real-time communication
Introducing Socket.IO
Scaling real-time Node.js applications
Integrating Socket.IO with Express
Directing Socket.IO messages
Testing Socket.IO applications
Organizing Socket.IO applications
Summary
Chapter 11: Deploying Node.js Applications
Working with Heroku
Deploying from Travis CI
Further resources
Summary
Chapter 12: Authentication in Node.js
Introducing Passport
Using Express sessions
Implementing social login
Allowing users to log out
Adding other login providers
Summary
Chapter 13: Creating JavaScript Packages
Writing universal modules
Writing npm packages
Publishing a package to npm
Using Node.js modules in the browser
Summary
Chapter 14: Node.js and Beyond
Understanding Node.js versioning
Understanding ECMAScript versioning
Exploring ECMAScript 2015
Introducing ECMAScript 2016
Going beyond JavaScript
JavaScript and ASP.NET
Summary

What You Will Learn

  • Understand which problems Node.js best solves
  • Write idiomatic JavaScript and Node.js code
  • Build web applications and command-line tools
  • Minimise complexity and efficiently solve difficult problems
  • Test and deploy Node.js applications
  • Work with persistent data
  • Implement real-time client-server applications
  • Integrate .NET and Node.js code

Authors

Table of Contents

Chapter 1: Why Node.js?
What is Node.js?
Why JavaScript?
When to use Node.js
Summary
Chapter 2: Getting Started with Node.js
Installing and running Node.js
Choosing an editor
Using an application framework
Summary
Chapter 3: A JavaScript Primer
Introducing JavaScript types
Functional object-oriented programming
Summary
Chapter 4: Introducing Node.js Modules
Organizing your codebase
Creating modules in Node.js
Defining a directory-level module
Implementing an Express middleware module
Summary
Chapter 5: Creating Dynamic Websites
Handling user-submitted data
Communicating via Ajax
Implementing other data operations
Summary
Chapter 6: Testing Node.js Applications
Writing a simple test in Node.js
Structuring the codebase for tests
Writing BDD-style tests with Mocha
Using Chai for assertions
Creating test doubles
Testing an Express application
Full-stack testing with PhantomJS
Summary
Chapter 7: Setting up an Automated Build
Setting up an integration server
Automating the build process with Gulp
Checking code style with ESLint
Gathering code coverage statistics
Running integration tests from Gulp
Summary
Chapter 8: Mastering Asynchronicity
Using the callback pattern for asynchronous code
Writing cleaner asynchronous code using promises
Combining asynchronous programming patterns
Summary
Chapter 9: Persisting Data
Introducing MongoDB
Using MongoDB with Express
Introducing Redis
Building a user ranking system with Redis
A note on security
Summary
Chapter 10: Creating Real-time Web Apps
Understanding options for real-time communication
Introducing Socket.IO
Scaling real-time Node.js applications
Integrating Socket.IO with Express
Directing Socket.IO messages
Testing Socket.IO applications
Organizing Socket.IO applications
Summary
Chapter 11: Deploying Node.js Applications
Working with Heroku
Deploying from Travis CI
Further resources
Summary
Chapter 12: Authentication in Node.js
Introducing Passport
Using Express sessions
Implementing social login
Allowing users to log out
Adding other login providers
Summary
Chapter 13: Creating JavaScript Packages
Writing universal modules
Writing npm packages
Publishing a package to npm
Using Node.js modules in the browser
Summary
Chapter 14: Node.js and Beyond
Understanding Node.js versioning
Understanding ECMAScript versioning
Exploring ECMAScript 2015
Introducing ECMAScript 2016
Going beyond JavaScript
JavaScript and ASP.NET
Summary

Book Details

ISBN 139781785280092
Paperback248 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

ASP.NET Core and Angular 2 Book Cover
ASP.NET Core and Angular 2
$ 35.99
$ 25.20
Reactive Programming for .NET Developers Book Cover
Reactive Programming for .NET Developers
$ 35.99
$ 25.20
Learning Angular 4 for .NET Developers Book Cover
Learning Angular 4 for .NET Developers
$ 31.99
$ 22.40
Mastering C# and .NET Framework Book Cover
Mastering C# and .NET Framework
$ 35.99
$ 25.20
JavaScript for .NET Developers Book Cover
JavaScript for .NET Developers
$ 39.99
$ 28.00
Web Development with Bootstrap 4 and Angular 2 - Second Edition Book Cover
Web Development with Bootstrap 4 and Angular 2 - Second Edition
$ 39.99
$ 28.00