Google App Engine

Steps for setting up Google App Engine:

1. Download and Install GoogleAppEngine Launcher

2. Create a directory for our web application with 2 files — .py and app.yaml

.py — the python script that responds to a request, returning something.

import webapp2

class MainPage(webapp2.RequestHandler):
  def get(self):
      self.response.headers['Content-Type'] = 'text/plain'
      self.response.write('Hello, webapp2 World!')

app = webapp2.WSGIApplication([('/', MainPage)],

.yaml configuration file

application: patswebapp  <-- this is the same as your unique application identifier in the Google App Engine Website Registration
version: 1
runtime: python27
api_version: 1
threadsafe: true

- url: /.*

3. In GoogleAppEngineLauncher, select File…Add Existing Application…and then select that local directory.

4. Select that application in the application list, select Run, and then Browse to view your web application in the local host: http://localhost:8080/

5. To put your web application online, Deploy –> sign in to your Google App Engine account. The same application identifier (e.g. patswebapp)  must have been created for this to work.

or deploy with the following command: update .

6. View your app online:

This entry was posted in Tech. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>