免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2011年9月16日 星期五

Google App Engine Try

Google App Engine 目前支援3種語言 : Go, Java, 與 Python.
但是 Go 目前只能在Linux/Mac 的環境下跑 , 而且需要Python 2.5


[ref]  http://code.google.com/appengine/docs/go/gettingstarted/devenvironment.html
『...
 The Go SDK uses slightly modified versions of the development tools from the Python SDK,
and will run on any Intel-based Mac OS X or Linux computer with Python 2.5.
...

//===
Python  只聽過正妹的一次課
//=== 所以 只好試試 appengine-java
0. 下載Java6 (runtime or jdk?)
1. 下載Eclipse3.6 (Helio)
2. 透過Eclipse Software Update 下載 App Engine SDK
或者
單獨下載App Engine SDK(事後還要透過Eclipse -> Configure SDK->告訴Eclipse, App SDK裝在何處 )
3. 透過Eclipse 下載  Google Plugin for Eclipse


高人建議直接試用 MyEclipse (內含Java), 不過頗肥, 整個下載要超過900MBytes ...
 MyEclipse 目前最新版是9.1 , 基本上是把Eclipse 3.6及其相關的資源打包,
有個Configuration Center -> Software -> ...

循著 Getting Started [ http://code.google.com/appengine/docs/java/gettingstarted/installing.html ]
逐步走
  • Creating a Project
  • Using the Users Service
  • Using JSPs
  • Using the Datastore
  • Using Static Files
  • Uploading Your Application

終於得到個人的第一個 Google App
http://lottery-assistant.appspot.com/
雖然名稱叫 lottery-assistant
其實還是Google 提供的 guestbook  範例



//=== 許多人推崇的GWT
GWT (Google Web Toolkit) :  translate Java to [Html/Javascript + CSS]


//=== 過程中必須修改的組態檔
war/WEB-INF/web.xml
war/WEB-INF/appengine-web.xml
war/WEB-INF/logging.properties


//===  MyEclipse 的 Google Deploy  似乎還不太靈光 ?
To upload the app by Windows Command console,
appcfg.cmd update "C:\Users\username\Workspaces\MyEclipse 9\Guestbook\war"

..\appengine-java-sdk\bin\appcfg.cmd update war

-->
"C:\Users\eric\AppData\Local\MyEclipse\Common\plugins\com.google.appengine.eclipse.sdkbundle_1.5.3.r36v201108301710\appengine-java-sdk-1.5.3\bin\appcfg.cmd" update war


[ref]
//===
http://code.google.com/p/google-app-engine-samples/
http://code.google.com/appengine/docs/java/gettingstarted/installing.html
https://appengine.google.com/start
http://code.google.com/appengine/downloads.html
http://code.google.com/eclipse/docs/install-eclipse-3.6.html

單獨下載Google AppEngine SDK
http://googleappengine.googlecode.com/files/appengine-java-sdk-1.5.4.zip
//=== The Google Plugin for Eclipse, for Eclipse 3.6 (Helios):
http://dl.google.com/eclipse/plugin/3.6

沒有留言:

張貼留言