Summary

In this chapter, we developed a fully functioning standalone server-side application using Node, Express, and MongoDB, covering the first part of the MERN skeleton application. In the backend, we implemented the following features:

  • A user model for storing user data, implemented with Mongoose
  • User API endpoints to perform CRUD operations, implemented with Express
  • User auth for protected routes, implemented with JWT and express-jwt

We also set up the development flow by configuring Webpack to compile ES6 code, and Nodemon to restart the server when the code changes. Finally, we checked the implementation of the APIs using the Advanced Rest API Client extension app for Chrome. 

We are now ready to extend this backend application code ...

Get Full-Stack React Projects 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.