Creating the DataStore Module

The first module you will write will store coffee order information in a simple database, not unlike writing down the orders by hand. Each order will be stored by the customer’s email address. To get started, you will only keep track of a text description of the order, like “quadruple espresso” (Figure 8.6).

Figure 8.6  Initial structure of CoffeeRun’s database

Initial structure of CoffeeRun’s database

Later, you will also keep track of the size, flavor, and caffeine strength of each coffee order. The customer’s email address will serve as the unique identifier for the entire order, so all of the order details will be associated with a ...

Get Front-End Web Development: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.