Manual testing

Since we have everything in place with MongoDB, it is time to start the application and run some tests manually. We will do so using the following steps:

  1. To start the application, run the following command:
$ npm run dev

  1. Go to the POSTman application and create a new user:

POST operation to create a new user
  1. Now, try to retrieve it using the GET operation:

Retrieving the user through the GET method
  1. Try to create more users and then create orders for them all:

Creating orders using the POST operation for the new users created
  1. Finally, call the URI. inventory :

Orders inventory 
  1. To make sure the documents are stored on MongoDB, check them using the Robomongo client. Users will be shown the following:

Users created and stored on MongoDB

The orders will be shown as follows:

Orders created with the new users and stored on MongoDB

As we can see from all the users and orders created, our test is successful.