Google App Engine is a cloud computing platform as a service for developing and hosting web applications in Google-managed data centres.
This comes with the added advantage of running apps load balanced across multiple servers without the worry of managing underlying infrastructure.
The other cool thing is you get a free SSL certificate and URL endpoint provided by google. While this is fine, a lot of the times, we want our own domain. Thankfully, this is also provided out of the box.
But before you can use a custom domain, you need to have one. If you don't have, you can purchase from any domain registrar, even google itself.
With that out of the way; head over to your google cloud console.
This is with the assumption that you already have a GCP project with app engine API enabled.
If you have not yet done that, you can search for app engine in cloud console.
Then proceed to creating a new project. After you have that taken care of, you can go ahead and get the gcloud CLI (SDK as google incorrectly calls it).
This can be installed from here.
Allow the gcloud CLI to login into your GCP with the following command:
gcloud auth login
The above command opens your default browser asking you to login into you GCP account. Once authorised, the CLI can be used to deploy your app engine service(s).
App engine provides two deployment environments, i.e standard and flexible.
According to google, in the standard environment,the "applications run in a secure, sandboxed environment, allowing the standard environment to distribute requests across multiple servers and scale servers to meet traffic demands. Your application runs within its own secure, reliable environment that is independent of the hardware, operating system, or physical location of the server". Aside from this, the only supported languages under standard environment are PHP, Nodejs, GO, Java, Ruby and Python as of the time of this writing.
The standard package also provides a free tier, if resource consumption is low.
For the actual free tier resources, follow this link.
The flexible environment has everything understand, with more "flexibility" as the name suggest.
This means that you are not limited by the choice of the programming language.
Using a programming language that is not part of the standard app engine programming languages is as easy as adding your own Dockerfile, and setting the runtime value to custom in the
Aside from this, you can also specify the compute resources (i.e CPU, RAM,etc)to allocate to the app engine instances
This is going to be a series of articles meant to help one get started with GCP app engine, and the next article will dive into adding the
app.yaml file to your project to make it deployable to app engine.
Be on the look out.