ãããè¦ã¦
Google App Engine SDKを使ってみた | 秋元@サイボウズラボ・プログラマー・ブログ
俺ã俺ããããããï¼ï¼
ã£ã¦ãã¨ã§éª¨é«åå°çã«
ãã¦ã³ãã¼ãå®äº
ã¤ã³ã¹ãã¼ã©èµ·å
ã²ããããcontinueã
ã¤ã³ã¹ãã¼ã«å
é¸ãã§
ãã¹ã¯ã¼ãå
¥ãã¦
ã¯ããå®äº
Getting Started ã§ãèªãã
Google App Engine Documentation | App Engine Documentation | Google Cloud
Hello world ã§ãã
ãªã¢ã«ã«ããã¥ã¡ã³ãèªã¿ãªãããã£ãã®ã§ä½éã§ãã
æ©éãããªããè¦ã¦ãï¼ï¼
Hello world ããããªã«ç°¡åã§ããã
ã¡ãã£ã¨ partty.org ã使ãããããããã jabanner ãã¤ã³ã¹ãã¼ã«ãã¾ãã
http://www.coins.tsukuba.ac.jp/~i0611238/pub/jabanner/
libgd ãã¤ã³ã¹ãã¼ã«ããªãã¨ã¤ã³ã¹ãã¼ã«ã§ããªãããã§ãã
libgd ãã¤ã³ã¹ãã¼ã«ä¸ãæéããã
æéãããã¼(libgd ã®ã¡ã¤ã¯ã)
jabanner ã®ã¤ã³ã¹ãã¼ã«ã«ã¯ã¾ã£ã
Mac ã ã¨
gettext ã®ãããããªãã¨ããè²ã
æãããï¼ï¼
以ä¸ã®ããã«ããã°å
¥ãã¾ããã
ã¾ãã src/jabanner.cc ã«ä»¥ä¸ã® include ãæ¸ã足ã
#include <libintrl.h>
ã§ã以ä¸ã®ããã« configure && make ãã
$ ./configure -v --prefix=/opt/local --with-libintl-prefix=/opt/local --with-included-gettext $ LDADD="-L/opt/local/lib/ -lintl" make
jabanner 㨠partty.org - このウェブサイトは販売用です! - partty リソースおよび情報 ã®ç¸æ§ã¯ç°å¸¸
è±ç·ãéãã ã常èçã«èãã¦ï¼ï¼
ã¨ããããã§ãããä¸åããã Google App Engine ã®ãµã³ãã«ãä½ã£ã¦ã¿ã
以ä¸ã®ã³ã¼ãã ã㧠Google ã®ã¦ã¼ã¶èªè¨¼ã使ãããã ã¼ã
from google.appengine.api import users user = users.get_current_user() if user: print 'Content-Type: text/plain' print '' print 'Hello, ' + user.nickname() + '!' else: # users.create_login_url('http://localhost:8080/welcome') # ã§ãã°ã¤ã³ç»é¢ã® URL ãåå¾ãã¦ããªãã¤ã¬ã¯ãããã
ããã¯ã楽ã
ãªããä½ã£ã¦ã¿ãã
次ãã®ã¨ã³ããªã«ç¶ã