Google App Engine 'Hello world' using python SDK
Google app engine 을 사용하여 hello world를 한번 찍어보자.
언어는 python으로 결정했고, OS는 ubuntu 12.04를 사용했다.
설치 프로그램
1. python2.7
2. google app engine SDK for python 다운로드
1. python2.7 다운로드
// python에서 zlib 모듈을 설치하기 위한 패키지
sudo apt-get install dpkg-dev
// python에서 sqlite3 모듈을 설치하기 위한 패키지
sudo apt-get install libsqlite3-dev
cd python2.7
./configure
make
sudo make install
2. Helloworld sample 작성
아래 가이드를 참고하여 작성
3. web server 실행 및 확인
google_appengine/dev_appserver.py helloworld/
localhost:8080으로 접속하면 hello, world 메시지를 확인할 수 있다.
예제를 차례로 따라가서, 다음 페이지에 샘플 앱을 올려서 확인할 수 있었다.!!
http://hellojaewonchoi.appspot.com/
References
// google app engine python helloworld guide
https://developers.google.com/appengine/docs/python/gettingstartedpython27/devenvironment
// python에서 zlib 모듈을 설치하기 위한 패키지
http://stackoverflow.com/questions/12344970/building-python-from-source-with-zlib-support
// python에서 sqlite3 모듈을 설치하기 위한 패키지
http://stackoverflow.com/questions/1210664/no-module-named-sqlite3
// webapp2 framwork
https://developers.google.com/appengine/docs/python/tools/webapp2