How it works...
Once the cloud SDK is configured to point at your application and has been authenticated, the GCloud tool allows quick deployment and configuration, allowing local applications to access Google services.
After authenticating and setting the port, we run the application on localhost, and we can begin working with code. The application defines a message object that can be stored and retrieved from the datastore. This demonstrates how you might isolate this sort of code. You might also use a storage/database interface, as shown in earlier chapters.
Next, we set up a handler that attempts to insert a message into the datastore, then retrieves all messages, displaying them in a browser. This creates something resembling a basic ...
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