Building an MVC ToDo App
In this chapter, we will start using the Genie framework (https://genieframework.com/) to build an MVC app. In an app designed according to this pattern, browser requests are sent (routed) to a controller. The controller chooses the view, which is the response displayed on the user’s screen (in the browser or otherwise). Additionally, the controller either asks the model for data that is needed in the view or sends new data to the model. Finally, the model is responsible for interacting with the database (DB) backend, to retrieve or persist data.
With Genie we can create a variety of applications, including simple server scripts, web services and APIs, and full MVC applications that are suitable for building large, scalable, full-stack web apps. The full-stack MVC apps make use of most of the Genie features and to see them in actions we’ll build such an MVC web app throughout this chapter.
Right now, we’ll start tackling the Todo...