© Elad Elrom 2016

Elad Elrom, Pro MEAN Stack Development, 10.1007/978-1-4842-2044-3_7

7. Write Services Once

Elad Elrom

(1)New York, USA

As you may recall, in Chapter 1, we installed Node.js on our local machine using the installer from http://nodejs.org . In Chapter 2, we rolled out servers and installed Node.js on Ubuntu servers. In Chapter 3, we installed modules and created our very own first Node.js module and published it to both npm and GitHub.

In this chapter, we will put it all together and utilize Node.js to create a service layer that can be used on any machine.

Note

A service layer, middle layer, or middle tier is the processing taking place between the front end and the database. It include business logic and processing data. The service ...

Get Pro MEAN Stack Development 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.