Summary

In this chapter, you learned how to build your first CRUD module. You started by defining the Mongoose model and Express controller and learned how to implement each CRUD method. You also authorized your controller methods using Express middleware. Then, you defined a RESTful API for your module methods. You learned a bit about reactive programming and the observer pattern. You used the HTTP client to communicate with your API. Then, you created your Angular components and implemented the Angular CRUD functionality. After connecting the four parts of a MEAN application and creating your first CRUD module, in the next chapter, you'll use Socket.io in order to add real-time connectivity between your server and client applications.

Get MEAN Web Development - Second Edition 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.