Back To Course
Introduction to Cloud Computing6 chapters | 26 lessons
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.
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.
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.
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
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'.
Once we have finished setting up the environment and compiling the Python code, we are now ready to deploy it on the Cloud platform. To deploy the app to the App Engine, run this command from 'appengine-guestbook-python' directory which contains 'index.yaml' and 'app.yaml'.
gcloud app deploy app.yaml index.yaml
To verify that the application is uploaded and deployed properly, run the following command and launch your browser at http://<your_project_id>.appspot.com to view the application.
gcloud app browse
In this lesson, we have learned how to deploy the simple Python-based application Guestbook on Google Cloud Platform. We have learned how to download various installers like Google Cloud SDK and the distributed version control system Git. We demonstrated how to perform cloning of the Guestbook project to your local directory and start the local development web server. Then we learned various features offered by the application like user authentication and data handling. Finally, we deployed the application to Google Cloud and verified the application in the local browser.
To unlock this lesson you must be a Study.com Member.
Create your account
Already a member? Log In
BackAlready registered? Login here for access
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
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.
Back To Course
Introduction to Cloud Computing6 chapters | 26 lessons