Last active
December 21, 2015 11:39
-
-
Save jeffgodwyll/6300282 to your computer and use it in GitHub Desktop.
Applications listeners should have on their machines + downloadable linksServices listeners should sign up for.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Conclusion & Review | |
Q: What cloud service level does Google App Engine sit? | |
A: App Engine is a platform (PaaS) service. | |
Q: What do you need in order to get started playing with Google App Engine? | |
A: You need to get the SDK from Google. Use this downloads link to get the one for your platform. The SDK comes with client libraries which you'll use to connect to the various App Engine APIs, a set of command-line tools for administration, and a development server. Mac and PC users also get a bonus: a GUI called the "Launcher" that gives a friendly interface to users and provides access to a subset of the command-line tool functionality. | |
Q: How do you create your first App Engine application? | |
A: Either use the Launcher to create a new application which generates boilerplate code, or create it by-hand. | |
Q: What is the development server and how do you start it? | |
A: The development server gives users a way to test their application during development. It runs locally allowing users to execute their app without being required to upload it to Google. You can start the development server either by pressing the "Run" button in the Launcher or use the dev_appserver.py command-line tool. | |
Q: How do you upload your application to Google? | |
A: Similar to the previous question, you can either click the "Deploy" button in the Launcher or use the appcfg.py command-line tool. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The app.yaml Configuration File | |
application: your_app_id | |
version: 1 | |
runtime: python27 | |
api_version: 1 | |
threadsafe: true | |
handlers: | |
- url: /favicon\.ico | |
static_files: favicon.ico | |
upload: favicon\.ico | |
- url: .* | |
script: main.app | |
libraries: | |
- name: webapp2 | |
version: "2.5.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The main.py file is our controller where the core application logic goes | |
import webapp2 | |
# the web runs using the http protocol and so it'l be practical to know a "lil" about it | |
class MainHandler(webapp2.RequestHandler): | |
def get(self): | |
self.response.write('Hello world!') | |
app = webapp2.WSGIApplication([('/', MainHandler)], | |
debug=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Google App Engine Requirements | |
Prerequisites | |
Basic familiarity with Python | |
PC, Mac, or Linux computer with Python 2.7 installed (http://python.org/download/releases/2.7.5/) | |
SDK tools for PC, Mac, or Linux at https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python | |
Services to sign up for | |
appengine.google.com | |
The "Hello World" app files are next | |
look at the most important of these files: app.yaml and main.py | |
these are automatically generated by the Launcher if using that tool. | |
If you’re on a system without a Launcher, you’ll need to create these files yourself. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment