[MUSIC PLAYING]
ANTHONY BUSHONG: From online stores to enterprise systems,
one of the most critical cloud skills
is knowing how to deploy a dynamic web application.
But with the number of cloud products and frameworks
expanding, it can feel overwhelming to learn
how to deploy your app in the cloud.
Luckily, there's a jumpstart solution
that lets you deploy a Django web
app on Google Cloud in minutes to lower the learning curve
and get you going.
Django is a powerful, open-source, Python web
framework to build flexible well-structured applications
with lots of modern features out of the box.
But implementing a web app is more than just
choosing a framework.
You need a strategic architecture
that provides scalable web servers,
serves dynamic data from a database,
and static assets from storage.
And you can't forget about security.
You need to encrypt sensitive configurations and data
and enforce a model of least privilege between services.
You choose a cloud serverless platform
to handle the scaling for you.
But that still leaves you having to decide on and set up
database and storage options based
on the characteristics of your application,
identify configurations and data that are sensitive,
and choose how you will store these secrets.
And finally, you need to make sure
that all of these separate components
are configured and integrated.
Sure, you can set up a cloud environment yourself, including
compute, a database server, web server, CI/CD security,
and networking.
But you want to spend your time working
on your application and not the underlying infrastructure.
There are ways to ease the burden of creating resources
in the cloud, like using infrastructure as code tools.
But we want to help you stay focused
on what you care about, the development of your application
for your users.
Google Cloud has a jumpstart solution
where you can deploy one of the most popular dynamic web
application stacks in the cloud in just a few steps
and in minutes.
You'll walk away learning how a Django dynamic web
app can run on Google Cloud.
You'll see how Google Cloud products work together
to run a simple app using Google Cloud serverless container
platform, managed database service,
secret management, CI/CD tooling, and cloud storage.
You'll also get learning resources
for updating the deployed application
and monitoring your application during runtime.
This jumpstart solution lets you deploy
a Django web app and all of its supporting infrastructure.
It's a sample e-commerce product website.
You have a storefront with information
about products plus the product's testimonials.
You can attempt to purchase a product
and get notified it's not a real store.
Then, a transaction with a time stamp
is recorded to the backend database.
Once the solution is deployed, the architecture
includes the following components.
The web client is hosted on Firebase Hosting, which
is a complete platform for web apps
that is automatically backed by a speedy, global CDN with HTTPS
out of the box.
The web client calls a Django REST framework API backend
written in Python that's running as a Cloud Run service.
And Cloud Run is the managed compute platform
that lets you run containers to handle incoming requests.
The configuration and other secrets
for the Python application are stored in Secret Manager.
And Secret Manager is a secure storage platform
for managing things like API keys, passwords, certificates,
and other sensitive data.
Static assets are stored in Cloud Storage,
which is object storage.
Cloud SQL for Postgres is used as a relational database
backend for the Python application.
The jumpstart solution lets you deploy the solution
with all the resources required once.
You hit Deploy, Google Cloud will automatically
create and configure all the cloud
resources needed to run this app and deploy the application
code.
Once it's deployed, you can access the web app like a user
and click on Products.
Or you can access it like an administrator
and explore the deployment, which
consists of multiple primary services that
have been integrated into a single Google Cloud project.
Then, you can use our learning resources
and interactive tutorials to explore
how the application is built.
For those of you who want to customize the solution
or automate the provisioning and management of the solution,
check out the Solution Guide in more detail.
To explore the solution backend, check out
an interactive tutorial that lets
you explore a client-server application to learn more
about your solution deployment.
Or check out the Solution Guide, which also walks through
how to explore the backend, how to access your service,
database, static assets, configuration storage,
and how to update your application.
To learn how to update a client-server application
on Cloud Run and Firebase Hosting,
check out the interactive tutorial
to understand more about your solution deployment
during runtime.
And finally, to troubleshoot common errors
check out the Solution Guide.
Now, keep in mind, this jumpstart Django solution
gives you a great way to explore the capabilities of Google
Cloud.
But it isn't intended to be used as is
for production environments.
Instead, you can learn a way to deploy dynamic web
apps on Google Cloud using products that are modular,
secure, and scalable.
Check out the links below to try this jumpstart solution
on your own.
[MUSIC PLAYING]