Chapter 3
Managing Data
IN THIS CHAPTER
Setting up your app’s data class
Creating a script to handle the app’s Ajax data requests
Creating new data items
Reading, updating, and deleting data
Handling data robustly and securely
Talk is cheap. Show me the code.
— LINUS TORVALDS
Some web apps are relatively simple and don’t require a back-end database. Such apps are all front end, with maybe a bit of data stored in the user’s browser. Front-end-only apps are very common and can be amazingly useful, a claim I hope to live up to when I talk about building just such an app in Book 8.
The rest of the web app world is a sophisticated and powerful marriage of both front-end interface and back-end infrastructure, and a big part of that server scaffolding is the data stored in a database such as MySQL. One of hats you must wear as a web developer is writing the code that enables data to pass robustly and securely between the front and back ends, and that code is the main topic of this chapter. ...
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