Using Google App Engine in Mac ( 1 )

2013. 1. 17. 16:07제2외국어/Android.

Google App Engine.

: 역시 보는 것 만큼 좋은 설명은 없습니다.




1. Eclipse 설치하기

** 이전에 설치한 ADT 는 ( Android Develop Tool ) 입니다.
Google App Engine 을 위해서는 Eclipse를 설치하셔야 합니다.
Link -- 최신 Eclipse 설치하기.



2. Google Plugin 설치하기

: 이미 사이트에 자세히 설명이 되어있습니다. 


[ 퍼옮 ]
https://developers.google.com/appengine/docs/java/gettingstarted/installing

Installing the Google Plugin for Eclipse

To install the plugin, using Eclipse 4.2 (Juno):

  1. Select the Help menu > Install New Software....
  2. In the Work with text box, enter:
    https://dl.google.com/eclipse/plugin/4.2
    Click the Add... button. In the dialog that shows, click OK (keep the name blank, it will be retrieved from the update site.)
  3. Click the plus icon next to "Google Plugin for Eclipse" and "SDKs". Check the boxes next to "Google Plugin for Eclipse 4.2" and "Google App Engine Java SDK". You can also select the "Google Web Toolkit SDK" if you'd like to use Google Web Toolkit with your apps. Make sure you check the checkbox labeled "Contact all update sites during install to find required software." Click the Next button. Follow the prompts to accept the terms of service and install the plugin.
  4. When the installation is complete, Eclipse prompts you to restart. Click Yes. Eclipse restarts. The plugin is installed.


3. 기본 Project 실행해보기

1. Web Application Project 생성


2. 프로젝트 ▶ Google ▶ Deploy to App Engine 



3. App Engine 설정하기
    - App Engine project settings... 선택



4. Application ID 에 만들어 놓은 ID를 적읍시다.
   ( 기억이 나지 않는다면, 옆에 있는 My applications.. 를 눌러서 웹사이트에서 확인하고 적으시면 됩니다. )

Ex) 제 Application ID : winplzlocation 이었습니다.


5. Run As ▶ Web Application 을 통해 실행이 시키면 컴파일이 잘 되고, 완료되었다면,
   브라우저에서 
http://winplzlocation.appspot.com/ 다음과 같은 화면이 떳다면 잘 따라오신겁니다.
  ( _ 밑줄 친 부분에 자신의 어플리케이션 이름을 적어주시면 됩니다. )


Code 

 appname.gwt.xml

 GWT 모듈 디스크립터
 GreetingService.java  동기 API
 GreetingServiceAsync.java  비동기 API

 appname.java

 구현부
 GreetingServicelmpi.java

 인사 서비스 구현 부

 war ▶ web.xml  GreetingServiceImpl 을 구성하는 전개 디스크립터

 war ▶ appname.html

 GUI를 표시하는 HTML 페이지
 war ▶ appname.css  GUI의 스타일시트



참고자료


PS. 사실 레퍼런스만 따라해도 충분히 하실 수 있습니다.만 정리하는 차원에서..
       JSP는 처음이라서 원하는 방향으로 정리하지 못 하였습니다.

'제2외국어 > Android.' 카테고리의 다른 글

Using Google App Engine in Mac ( 2 )  (0) 2013.01.17
Android 환경 구축 in Mac  (0) 2012.11.15