Unit 4. Building a user model

 

In unit 3, you learned how to connect your application to a database. You also constructed your first schema and model. This unit builds on those lessons by introducing more functionality to your models. First, you learn more about how Mongoose schemas and methods can be used to interact more reliably with your models. You build a model to represent user data and connectivity. Every user needs to create an account, edit, and delete their account. In this unit, I discuss create, read, update, and delete (CRUD) functions in application development and show what you need to create a robust model. By the end of this unit, you’ll have an application that supports three models, each associated with one another and manageable from views in your browser.

This unit covers the following topics:

sitemap