Organizing the files

Before you get started writing any code, we want to make sure that you have a project folder set up correctly with the proper folder structure to house all of the various files that you will be creating. Get started by creating a new folder for your project, and name it anything you like. Then, inside that folder, create additional folders to match the following structure:

Organizing the files

Each of these folders will contain important modules that we will write throughout the remainder of this chapter and book.

You are going to need a package.json file for this project, and the easiest way to create one of these is by simply executing the following ...

Get Web Development with MongoDB and Node.js 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.