Chapter 3. Managing Assets

The first two chapters were a good introduction to the building blocks and structures of Node.js application development. We learned about the fundamentals of the technology and revealed important patterns such as Model-View-Controller. We talked about test-driven development and REST APIs. In this chapter, we will create the base of our social network. The proper delivery and management of an application's assets is an essential part of the system. In most of the cases, it determines our workflow. We will go through the following topics in this chapter:

  • Serving files with Node.js
  • CSS preprocessing
  • Packing client-side JavaScript
  • Delivering HTML templates

Serving files with Node.js

Node.js differs from the usual Linux-Apache-MySQL-PHP ...

Get Node.js By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.