书籍详情
Google App Engine开发(影印版)
作者:(美)斯华伦 著
出版社:东南大学出版社
出版时间:2010-06-01
ISBN:9787564122683
定价:¥52.00
购买这本书可以去
内容简介
即便你在编程或者Web开发方面只有很少或者没有任何经验,使用Google APP Engine和这本书就能快速并且充满自信地构建那些激动人心的可扩展Web应用。App Engine几乎是近年来最引人注目的Web技术,它提供了一个简单易用的应用程序框架以及基本的Web工具。尽管Google自带的教程已经展示了主要的步骤,但是《Google App Engine开发》将会帮助任何人开始上手使用这个平台。读完本书你将学会如何构建完整的交互应用,并且将它们部署到和]Google搜索引擎使用同样服务器的云中。拥有这本书,你将会:纵览Google App Engine相关必备技术;学习如何使用Python、HTML、层叠样式表(CSS)、HTTP和IDataStore(App Engine的数据库);领会创建高级动态web应用的必备技术要点;掌握部署应用的前提要件。《Google App Engine开发》同样也是那些想要获得Web开发技能的资深程序员的极佳参考资源。构建Web应用曾是专家们独占的领地,但自从有了Google App Engine和这本书,任何人都能创建一个动态Web网站。
作者简介
Charles Severance是密歇根大学信息学院的兼职助理教授。他也是IMS全球学习联合会的IMS开发者网络协调员。
目录
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 Python
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
Pythons 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 HTTP Request
Hacking the HTTP Protocol
The HTTP Protocol Standards
Watching HTTP 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 HTTP Request
Advanced: Multipart POST Data with File Upload
Summary
Exercises
5.The App 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
HTTP 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
Putting the Primary Key into Session
Adding the Chat Feature
Summary
Exercises
9.JavaScript, jQuery, and AJAX
jQuery
Create a View of the Chat Messages in HTML
Asynchronously Updating a Using AJAX
Summary
Exercises
10.Running Your Application on the Google Infrastructure
Application Engine Accounts
Creating an Application on App Engine
Uploading Your Application
Testing Your Application
Logs, Statistics, and Other Features
Uploading New Versions
Collaboration on Applications
Summary
Exercises
11.Memory Cache
The Rules of Memory Cache
Using the Memory Cache
Using the Application Console to Examine Memory Cache
Using a Memory Cache in Your Application
Building a Session Store Using Memory Cache
Sessions and Memory Cache
Summary
Exercises
A. Installing and Running Google App Engine on Windows XP
B. Installing and Running Google App Engine on Windows Vista
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 Python
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
Pythons 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 HTTP Request
Hacking the HTTP Protocol
The HTTP Protocol Standards
Watching HTTP 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 HTTP Request
Advanced: Multipart POST Data with File Upload
Summary
Exercises
5.The App 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
HTTP 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
Putting the Primary Key into Session
Adding the Chat Feature
Summary
Exercises
9.JavaScript, jQuery, and AJAX
jQuery
Create a View of the Chat Messages in HTML
Asynchronously Updating a Using AJAX
Summary
Exercises
10.Running Your Application on the Google Infrastructure
Application Engine Accounts
Creating an Application on App Engine
Uploading Your Application
Testing Your Application
Logs, Statistics, and Other Features
Uploading New Versions
Collaboration on Applications
Summary
Exercises
11.Memory Cache
The Rules of Memory Cache
Using the Memory Cache
Using the Application Console to Examine Memory Cache
Using a Memory Cache in Your Application
Building a Session Store Using Memory Cache
Sessions and Memory Cache
Summary
Exercises
A. Installing and Running Google App Engine on Windows XP
B. Installing and Running Google App Engine on Windows Vista
猜您喜欢