Using Google App Engine開發(fā):[英文版]
定 價:52 元
- 作者:Charles Severance著
- 出版時間:2010/6/1
- ISBN:9787564122683
- 出 版 社:東南大學(xué)出版社
- 中圖法分類:TP393.092
- 頁碼:264頁
- 紙張:膠版紙
- 版次:1
- 開本:32開
2008年4月,谷歌宣布了一項名為App Engine的產(chǎn)品。當你編寫一個Web網(wǎng)站的運行程序時,你的軟件運行在谷歌服務(wù)器上的某處谷歌“云”中。就像你成為谷歌的一員似的,你可以訪問到完整的可拓展的谷歌基礎(chǔ)框架。應(yīng)用引擎借鑒谷歌的經(jīng)驗,建設(shè)快速可靠可擴展的網(wǎng)站。本書介紹了該產(chǎn)品的開發(fā)與應(yīng)用技術(shù)。
Preface
1. Programming on the Web
The Request/Response Cycle
What Is Google App Engine?
What Is a 'Cloud'?
Why Did Google Build App Engine and Give It Away for Free?
What Is the Google Infrastructure Cloud?
Enter the Application Engine
Your Application Must Be a Good Citizen in the Google Cloud
How the Cloud Runs Your Application
Why You Really Want to Run in the Cloud
The Simplest App Engine Application
Summary
Exercises
2. HTMLandCSS
A Brief History of HTML and CSS
HyperText Markup Language (HTML)
A Well-Formed HTML Document
Validating Your HTML
HyperText Links (Anchor Tags)
Multiple Files
Lists in HTML
Specifying Styles Using CSS
Styling Tags with CSS
Exerting More Control over Markup
Validating CSS
Tools to Help You Work with css
Building the Navigation Menu
The CSS Box Model
Adding Navigation Hints for Users
Summary
Exercises
3. Python
What Is Programming?
About Pyttion
Installing Python
The Essence of Programming
Input, Processing, and Output
Conditional Steps: A Number-Guessing Web Application
Variables and Expressions
Naming Variables
Constants
Handling Text Data Using Strings
Using the String Library
Types and Conversion
Variables with Many Values at the Same Time: Lists
Repeated Code: Loops
Python's Backpack: Dictionaries
Looping Through a Dictionary
Stored and Reused Code: Python Functions
Turning Traceback to Our Advantage Using Try and Except
Object-Oriented Python
Comments in Python
The Tao of Programming
Summary
Exercises
4. Sending Data to Your Application
Making an Request
Hacking the Protocol
The Protocol Standards
Watching in Action
HTML: Building a Form
Sending Form Data to the Server Using POST
Handling Form Data in the App Engine Server
Sending Form Data to the Server Using GET
App Engine Log
Looking at All the Data Available on an Request
Advanced: Multipart POST Data with File Upload
Summary
Exercises
5. TheApp Engine webapp Framework
A Trivial App Engine Application
An Equivalent Trivial webapp Application
The Handler Callback Pattern
Looking at the Handler Code
What Is 'self' and Why Is It There?
Number Guessing Using the webapp Framework
Web Server Logs
Summary
Exercises
6. Templates
Template Syntax
Using the Templates from Python
The Number-Guessing Game Using Templates
Abstraction and Separation of Concerns: 'Model View Controller'
Building a Multiscreen Application
Static Files in App Engine
Referencing Static Files
Generalizing Template Lookup with Multiple Templates
Extending Base Templates
Conditional Processing Templates
Replacing More Than One Block in the Base Template
Extending Our Application
Syntax Errors
More on Templates
Summary
Exercises
7. Cookies and Sessions
Cookies
Logging In and Logging Out Using Sessions
Installing the Simple Session Utility
Using the Session to Mark Login and Logout
Changing the User Interface for a Logged-In User
Summary
Exercises
8. AppEngineDatastore
The Model-View-Controller Pattern
Defining Models
Adding a New Account Form
Adding a User Account
Looking Through the Datastore
Logging In and Checking Accounts and Passwords
Retrieving and Displaying Many Objects
Terminology: Different Types of Keys
References Between Data Models
Interactions Between Models
Pt/tting the Primary Key into Session
Adding the Chat Feature
Summary
Exercises
9. lavaScript, jQuery, and AJAX
jquery
Create a View of the Chat Messages in HTML
Asynchronously Updating a