Testing POST /todos inside of Postman

I'm going to restart the server in the Terminal. You could start this up with nodemon if you like. For the moment, I'll be manually restarting it:

nodemon server/server.js

We're now up on localhost 3000, and inside of Postman, we can make the exact same request we made earlier. I'm going to click on Send:

We get a Status of 200. This is fantastic; it's the default status, which means things went great. The JSON response is exactly what we expected. We have our text that we set; we have the _id property which was generated; we have completedAt, which is set to null, the default; and we have completed set ...

Get Advanced Node.js 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.