Firebase is another Google Cloud service that creates a scalable, easy-to-manage database that can support authentication and works especially well with mobile applications. For this recipe, we'll use the latest Firestore as our database backend. The Firebase service provides significantly more than what will be covered in this recipe, but we will just be looking at storing and retrieving data. We'll also look into how to set up authentication for your application and wrap the Firebase client with our own custom client.
Getting ready
Configure your environment according to these steps:
- Download and install Go 1.11.1 or greater on youroperatingsystem fromhttps://golang.org/doc/install.
- Create a Firebase account, project, and database athttps://console.firebase.google.com/.
This recipe runs in test mode, which is not secure by default.
- Generate...