
The result is an Object, and by convention, it is typically named app. We are requiring the express module, and then calling the express() function and assigning the result to the app constant. Once that is complete, add the following code. We also need an index.js file in the root of the project, so we can create that too.

Enter the following commands to get started. We’ve learned how to scaffold out an Express project already, so let’s go ahead and create a new one so we can build out our new REST api. In this tutorial, we will create all of these services using Node.js and Express. Each operation uses a different HTTP verb. These operations can be referred to collectively as CRUD operations.

In REST, the HTTP protocol is used to facilitate Create, Read, Update, and Delete of resources on the server. It is a convention for building HTTP services via a client and server architecture. REST is referring to Representational State Transfer. Let’s see how to build a simple REST api using Express to allow for all of the CRUD operations.
