Google app engine abbreviated as GAE is a cloud computing platform where web applications are developed and hosted in data centers managed by Google. Multiple servers are used to run an application. Automatic scaling of the applications is offered by the App Engine. In case there is an increase in the number of requests for an application; the App Engine allocates automatically more resources to meet the demand.
Google App Engine use is free until a certain level of resources is consumed. Resources that are charged include bandwidth, storage or instance hours an application requires.
Supported languages for developing Google App Engine application are Java, Python 2.7, Python 2.5 or Go.
You will require the App Engine Python software development kit (SDK) to develop and uploading the Python applications for Google App Engine. You can download it from here. There is a download for every operating system platform. Install it.
We will be implementing a small application that displays the message “Learning Google App Engine”.
We start off by creating a directory which I will name “learning“. At the root of learning directory, create a file and name it “learning.py”. Enter the following content into that file
This is a Python script that responds to request with HTTP headers.
app.yaml is a configuration file included with each App Engine application. It describes the handler scripts to be used for a certain URL. Inside the learning directory, create the app.yaml file and enter the following contents.
The application is now complete. We now have a directory with two files in it.
The web server that is included with the App Engine SDK can be used to test the app.
Run the App Engine SDK you just installed.
The application is setup by selecting File àAdd Existing Application.
This opens a dialog where you are to add the learning directory. Click on add.
The leaning app is added to the SDK. To start the application, select the learning application and click the Run button.
To view the app click on the Browse button
This opens the browser and displays the message.
This application is running on your local machine. We will now deploy it to the GAE cloud platform. Login to GAE using this link. You will need a gmail account to host on the GAE. Create one if you don’t have.
This opens a dashboard where you create an app. 10 applications can be created for this account. Click on “create Application”.
Opens a page where you enter the application identifier. This is a unique name that will be used to identify the application. Availability of the identifier chosen must be checked. Give a suitable title and click on create.
Opens a success page. Click on dashboard for the application administration
The identifier name is shown. You are to change the app.yaml file and replace the application name we had earlier named learning
With your application identifier that you used for your application. Mine is “Replicatio” and my app.yaml will change too
Google App Engine Launcher, click on deploy.
Enter the gmail address you created the GAE account with and click ok. The application is deployed. You can visit your application by visiting http://your_app_id.appspot.com
Designed By: Waleed Rafique
All Rights Reserved, Sharath Reddy