4
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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access