Chen Yangjian's Blog

Carpe diem - Seize the day

Google App Engine SDK 一二

| Comments

以下简称 GAE

我用的是 python 版本。 本地开发有个简易版服务器,模拟了真实环境,dev_appserver.py。 此外有个用来部署自己的应用的 appcfg。 具体命令参数点过去看就是了。

App Engine 提供了丰富的开发工具,跟 django template 没啥区别的 webapp template, 用起来很顺手的 data store,以及有效的 app.yaml 设置,按照官方的 tutorial hello world 一路走下来, 一个简单的应用就弄完了。正像我昨天对 jQuery plugin 评价的,有的时候更重要的是想法。

目前支持的 Python 版本是 2.5,原以为要自己弄 simplejson 了,没想到自带了 django,直接:

from django.utils import simplejson as json

也就是了。

dev_appserver.py 默认端口是8080,默认只能本地访问。想跑一个方便些的多人测试的话:

dev-appserver.py --port 80 --address 0.0.0.0 path_to_your_app

此外,还有个控制台,本地和实际环境中都有。

最后,是我最近做的一个记账的小工具:Gain or Spend

Comments