The Node Craftsman Book

Become a Node.js craftsman.

The Node Craftsman Book

This ebook is included in a Mapt subscription
Manuel Kiessling

1 customer reviews
Become a Node.js craftsman.
$0.00
$16.00
$39.99
$29.99p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781787128149
Paperback186 pages

Book Description

The Node Craftsman Book helps JavaScript programmers with basic Node.js knowledge to now thoroughly master Node.js and JavaScript. This book dives you deeper into the craft of software development with Node.js and JavaScript, incuding object-orientation, test-driven development, database handling, web frameworks, and much more.

The Node Craftsman Book shows you how to work with Node.js and how to think deeply about how you build your Node projects. You'll master how to build a complete Node.js application across six crafting milestones, and you'll learn many specific skills to achieve that mastery. These skills include how to work with the Node Package Manager in depth, how to connect your Node applications to databases, and how to write unit tests and end-to-end tests for your code. You'll experience the full Node.js development picture, and learn how to craft and control your Node.js applications - right through to fully-fledged web applications using REST, and integration with Angular applications.

Table of Contents

Chapter 1: Part 1: Node.js Basics in Detail
Introduction to Part 1
Chapter 2: Working with NPM and Packages
Chapter 3: Test-driven Node.js Development
Chapter 4: Object-oriented JavaScript
Blueprints versus finger-pointing
A classless society
Creating objects
Object-orientation, prototyping, and inheritance
Summary
Chapter 5: Synchronous and Asynchronous Operations Explained
Visualizing the Node.js execution model
Blocking and non-blocking operations
Chapter 6: Using and Creating Event Emitters
Introduction
Creating your own event emitter object
Summary
Chapter 7: Optimizing Code Performance and Control Flow Management Using the Async Library
Executing expensive asynchronous background tasks in parallel
Optimizing code structure with async
Chapter 8: Node.js and MySQL
Using the mysql library
A first database application
Using the Streaming API
Making SQL queries secure against attacks
Summary
Chapter 9: Node.js and MongoDB
Some MongoDB basics
Applying CRUD operations with the low-level mongodb driver
Retrieving specific documents using filters
More complex update operations
Working with indexes
Querying collections efficiently
Summary
Chapter 10: Part 2: Building a Complete Web Application with Node.js and Angular
Introduction
The requirements from a user's perspective
High level architecture overview
Setting up the development environment
Chapter 11: Milestone 1 – A First Passing Test Against the Server
Chapter 12: Milestone 2 – The API Responds with Actual Database Content
Abstracting database access
Ensuring a clean slate for test runs
Completing the first spec
Chapter 13: Milestone 3 – Setting the Stage for a Continuous Delivery Workflow
Introducing automatic database migrations
Chapter 14: Milestone 4 – Giving Users a Frontend
Setting up frontend dependencies through bower
Serving the frontend through the backend server
Adding the frontend code
Adding AngularJS view templates
Chapter 15: Milestone 5 – More Work on the Backend
Adding a route for retrieving categories
Making the backend recognize different environments
Chapter 16: Milestone 6 – Completing the Backend and Finalizing the Application
Creating the route for adding new keywords
Creating the route for updating keywords
Creating the route for deleting keywords
Summary

What You Will Learn

  • How to connect to databases like MongoDB and MySQL from your Node.js application
  • How to unit tests and end-to-end tests for your code
  • When and how to leverage migrations for setting up a continuous deployment workflow
  • Detailed insight into how the Node Package Manager, NPM works
  • How object-orientation actually works in JavaScript
  • Ways to keep your code fast and efficient using asynchronous and non-blocking operations
  • How to use and create event emitters
  • How to use REST frameworks to write full-fledged web applications
  • How to integrate Node.js with Angular

Authors

Table of Contents

Chapter 1: Part 1: Node.js Basics in Detail
Introduction to Part 1
Chapter 2: Working with NPM and Packages
Chapter 3: Test-driven Node.js Development
Chapter 4: Object-oriented JavaScript
Blueprints versus finger-pointing
A classless society
Creating objects
Object-orientation, prototyping, and inheritance
Summary
Chapter 5: Synchronous and Asynchronous Operations Explained
Visualizing the Node.js execution model
Blocking and non-blocking operations
Chapter 6: Using and Creating Event Emitters
Introduction
Creating your own event emitter object
Summary
Chapter 7: Optimizing Code Performance and Control Flow Management Using the Async Library
Executing expensive asynchronous background tasks in parallel
Optimizing code structure with async
Chapter 8: Node.js and MySQL
Using the mysql library
A first database application
Using the Streaming API
Making SQL queries secure against attacks
Summary
Chapter 9: Node.js and MongoDB
Some MongoDB basics
Applying CRUD operations with the low-level mongodb driver
Retrieving specific documents using filters
More complex update operations
Working with indexes
Querying collections efficiently
Summary
Chapter 10: Part 2: Building a Complete Web Application with Node.js and Angular
Introduction
The requirements from a user's perspective
High level architecture overview
Setting up the development environment
Chapter 11: Milestone 1 – A First Passing Test Against the Server
Chapter 12: Milestone 2 – The API Responds with Actual Database Content
Abstracting database access
Ensuring a clean slate for test runs
Completing the first spec
Chapter 13: Milestone 3 – Setting the Stage for a Continuous Delivery Workflow
Introducing automatic database migrations
Chapter 14: Milestone 4 – Giving Users a Frontend
Setting up frontend dependencies through bower
Serving the frontend through the backend server
Adding the frontend code
Adding AngularJS view templates
Chapter 15: Milestone 5 – More Work on the Backend
Adding a route for retrieving categories
Making the backend recognize different environments
Chapter 16: Milestone 6 – Completing the Backend and Finalizing the Application
Creating the route for adding new keywords
Creating the route for updating keywords
Creating the route for deleting keywords
Summary

Book Details

ISBN 139781787128149
Paperback186 pages
Read More
From 1 reviews

Read More Reviews