From the course: Building Full-Stack Apps with React and Spring

Overview of the full-stack and MVC

From the course: Building Full-Stack Apps with React and Spring

Start my 1-month free trial

Overview of the full-stack and MVC

- [Instructor] If you have been programming for a few years you may have heard of the model view controller pattern, but it is often the first thing you learn as you grow more experienced as a developer. This pattern basically defines how an application should be split and often reflects how your modules are organized within three simple categories, models, views, and controllers. The model is where your data resides, where you define your schemas and the models for your data. The views is where you have your views and in most cases the pure HTML of your application, where the visuals are. And finally the controller is where you have your logic of your application, the functions that makes your application run. Following this pattern most developers put all the files in structure of their application following this pattern and even sometimes name the folders with these labels. So if we apply this pattern to the stack we'll be using in this course the models would be handled by spring as long as the controllers which are being in most part handled as well into spring. And finally the view that will be handled by react. And when I say most part for controllers, some of the logic sometimes can be handled by react with their high order components, which are the components that wrap some of the logic to create a new component. We want to explore HOCs in this course, but if you'd like more information on them look into reacts documentation.

Contents