Writing Modular Express Services

Throughout the remainder of the chapter, we’re going to build a RESTful web service with Express for creating and managing book bundles. These are basically named reading lists. Our app will be called Better Book Bundle Builder (or b4 for short).

We’ll work extensively with the books database we set up in Chapter 5, Accessing Databases, as well as a new database called b4. Our application will work roughly as follows:

  • It will communicate with two databases: the books database and the b4 database.

  • To the b4 application, the books database is read-only (we will not add, delete, or overwrite any documents in it).

  • The b4 database will store user data, including the book bundles that users make.

To create the b4 ...

Get Node.js the Right Way 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.