This tutorial walks you through developing and deploying a global application built on CockroachDB, using Flask, SQLAlchemy, CockroachDB Cloud, and Google Cloud services.
The following sections make up the tutorial:
- MovR: A Global Application Use-case
- Create a Multi-region Database Schema
- Set up a Virtual Environment for Developing Global Applications
- Develop a Global Application
- Deploy a Global Application
Throughout the tutorial, we reference the source code for an example web application for the fictional vehicle-sharing company MovR. The source code for this application is open source and available on GitHub, in the
movr-flask repository . The code is well-commented, with docstrings defined at the beginning of each class and function definition.
The repo's README also includes instructions on debugging and deploying the application using Google Cloud services. Those instructions are reproduced in Set Up a Virtual Environment for Developing Global Applications and Deploy a Global Application.
For a live demo of the deployed example application, see https://movr.cloud.