Copyright

How to Deploy a Simple Cloud Application

Instructor: Ashu Juneja

Ashutosh has good experience working on latest technologies used in software product dev. He holds an engineering degree from India and an MBA degree from France.

Are you interested in deploying your applications on the Cloud platform? In this lesson, you will learn the basic steps used to deploy a simple application on Google Cloud.

Introduction to Cloud Computing

Traditionally, businesses have to manage all the activities related to procurement, delivery, and commissioning of their IT infrastructure. Nowadays, most of the IT related services are outsourced to vendors who provide these computing services through the internet. These vendors have a huge collection of computing resources (called Cloud Computing) that provide computing services like storage, database servers, software, and networking. These services are flexible and economical, which means that a user pays only for the type of service they use and for how much time they use.

Google Cloud Platform (GCP) is a fully managed cloud platform that allows developers to build and deploy their applications. With this platform, the users do not have to worry about managing their servers, the configurations, and the underlying infrastructure. It provides a web framework called Google App Engine that is used for developing and hosting web applications on Google Cloud.

In this lesson, we will explore a Python-based Guestbook application and learn how to set its environment, understand some of its features, and how to deploy it on the Google Cloud Platform. Guestbook app is a shared message board that allows users to post their comments.

Set Up the Environment

  1. From the GCP console of your Google account, create a new GCP project from the projects page. Also, select the region where you want the app to be located.

Google Cloud SDK is a software package that provides a set of tools like 'gcloud' and 'gsutil' to access its servers and databases. Git is an open source tool that maintains a version history of all project files and directories, also called as a distributive version control system.

  1. Download and install the Google Cloud SDK and initialize the 'gcloud' tool.
  2. Download and install a distributed version control system Git.

Download the Guestbook Project (cloning)

Now, you have to download an application from Google Cloud which was already created for demo purpose. You have to clone (download) the project from the Git repository to your local directory using this command:

  git clone https://github.com/GoogleCloudPlatform/appengine-guestbook-python.git 

Change to the directory that contains the code:

  cd appengine-guestbook-python

Compile and Run the Project Locally

For development purposes, you have to build the 'dev_appserver.py' to start your local web server. This allows the user to check if the application runs properly on a local web server.

  dev_appserver.py ./

Type http://localhost:8080/ in the web browser to check that application is running properly.

Perform some basic checks by logging in with your email address. If all looks good, close the development web server by typing 'control + c'.

To unlock this lesson you must be a Study.com Member.
Create your account

Register to view this lesson

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use Study.com

Become a Study.com member and start learning now.
Become a Member  Back
What teachers are saying about Study.com
Try it risk-free for 30 days

Earning College Credit

Did you know… We have over 160 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? Study.com has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it risk-free for 30 days!
Create An Account
Support