這篇主要是翻譯Google的文件,並且補了一些圖片幫助程式設計人員了解如何利用Eclipse with Google Plugin建立第一個 Web Application並且發佈到自己的Google App中。
Step1:在Eclipse中利用Google Web Application Project wizard建立一個新的Project。

Step2:輸入Project name及Java Package Name,最後按下Finish。


由於我之前安裝了Pydev所以可以將他切換成java模式。

到目前為止,第一個範例已經完成了,你可以在本機Run起來測試看看。
Step3:本機執行Web Application。


Step4:將URL貼在瀏覽器上測試執行結果。

# 如果出現下面的訊息,請重新編譯程式。

# 重新編譯程式:


Step5:設定你的Google App的相關參數。

Step6:輸入你的Application ID。

Step7:發佈程式至你的Google App的帳戶中。

Step8:發佈帳戶的email及密碼。


Step9:測試發布狀況。

完成了。
Step1:在Eclipse中利用Google Web Application Project wizard建立一個新的Project。
File > New > Web Application Project
Step2:輸入Project name及Java Package Name,最後按下Finish。
由於我之前安裝了Pydev所以可以將他切換成java模式。
到目前為止,第一個範例已經完成了,你可以在本機Run起來測試看看。
Step3:本機執行Web Application。
Debug As > Web Application
Step4:將URL貼在瀏覽器上測試執行結果。
http://localhost:8888/
# 如果出現下面的訊息,請重新編譯程式。
# 重新編譯程式:
Step5:設定你的Google App的相關參數。
Google > App Engine Settings
Step6:輸入你的Application ID。
Step7:發佈程式至你的Google App的帳戶中。
Google > Deploy to App Engine
Step8:發佈帳戶的email及密碼。
Step9:測試發布狀況。
http://application-id.appspot.com/
完成了。
留言
張貼留言