Learning Node.js for .NET Developers

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

Learning Node.js for .NET Developers

Learning
Harry Cummings

1 customer reviews
Solve practical real-world problems using JavaScript and Node.js
$23.99
$29.99
RRP $23.99
RRP $29.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Preview in Mapt

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