The Node Craftsman Book

Author: Manuel Kiessling  

Publisher: Packt Publishing‎

Publication year: 2017

E-ISBN: 9781787289253

P-ISBN(Paperback): 9781787128149

Subject: TP301.6 algorithm theory;TP31 computer software

Language: ENG

Access to resources Favorite

Disclaimer: Any content in publications that violate the sovereignty, the constitution or regulations of the PRC is not accepted or approved by CNPIEC.

Description

Become a Node.js craftsman.About This Book• This book will help readers to dive deeper into software development with Node.js and JavaScript• Takes a craftsman approach to Node.js and object-orientation and test-driven development• Crafts many of the small details of Node.js and through to fully-fledged web applications with REST Who This Book Is ForThis book is written to help you if you're working with Node.js already, but you want to move your craft to the next level with Node.js, so some working knowledge of Node.js is of course already assumed, so that we can look at the work of crafting applications with Node.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 AngularIn DetailThe 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.Style and approachThis book builds on your early knowledge and experience of Node.js and takes a craftsman approach to understanding the whole picture more deeply and shaping your Node applications to perform the way a craftsman would want. So, we take a thoughtful and broad thinking and coding approach to work with Node.js in this book.

Chapter

Chapter 3: Object-oriented JavaScript

Blueprints versus finger-pointing

A classless society

Creating objects

Using a simple function to create plain objects

Using a constructor function to create objects

Using prototyping to efficiently share behaviour between objects

Object-orientation, prototyping, and inheritance

A classless society, revisited

Summary

Chapter 4: Synchronous and Asynchronous Operations Explained

Visualizing the Node.js execution model

Blocking and non-blocking operations

Chapter 5: Using and Creating Event Emitters

Introduction

Creating your own event emitter object

Summary

Chapter 6: Optimizing Code Performance and Control Flow Management Using the Async Library

Executing expensive asynchronous background tasks in parallel

Optimizing code structure with async

Chapter 7: Node.js and MySQL

Using the mysql library

A first database application

Using the Streaming API

Making SQL queries secure against attacks

Summary

Chapter 8: 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

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 9: Milestone 1 – A First Passing Test Against the Server

Chapter 10: Milestone 2 – The API Responds with Actual Database Content

Abstracting database access

Ensuring a clean slate for test runs

Completing the first spec

Chapter 11: Milestone 3 – Setting the Stage for a Continuous Delivery Workflow

Introducing automatic database migrations

Chapter 12: 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 13: Milestone 5 – More Work on the Backend

Adding a route for retrieving categories

Making the backend recognize different environments

Chapter 14: 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

Index

The users who browse this book also browse


No browse record.