Step 1: Download J2EE Eclipse if you have not done so, the link is http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr2
Now unzip and launch the eclipse IDE
Step 2: Import the App Engine Endpoint project (which can be created using maven, e.g., following this link: http://czcodezone.blogspot.sg/2014/09/using-maven-to-create-app-engine.html) into Eclipse. To do so, right-click "project explorer" in Eclipse and select "Import->Import". Next, in the import dialog, select "Maven->Existing Maven Projects", and follow the steps to import the maven app engine endpoint project.
Step 3: To run the imported project, right-click the project in the "project explorer" and select "Run As->Run Configurations". In the run configuration dialog, right-click "Maven Build" and select "New", now enter the configuration name on top of the page and enter "appengine:devserver" in the "Goals" textfield. In click "Browse Workspace" below the "Base Directory" and select the imported project. Finally click on "Apply" button, and then "Run", the maven will then go and compile and download related libraries and start running the project".
When the project is running, the output command line in Eclipse will read "[INFO] INFO: Dev App Server is now running". Now you can open the url http://localhost:8080/ in your browser and see the app engine endpoint web app running.
Step 4: To see the available endpoint api, after the app is running go to the link http://localhost:8080/_ah/api/explorer
No comments:
Post a Comment