- Create and deploy Application using Google App Engine. -PAAS and IAAS

Shaping the great minds.

Saturday, 4 March 2017

Create and deploy Application using Google App Engine. -PAAS and IAAS

Google App Engine is a cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers. Google app engine provide platform as a service and infrastructure as a service for developers. just create application in eclipse and deploy it on app engine.
so let's get started!

  1. JDK.
  2. Eclipse 3.7 + Google Plugin for Eclipse.
  3. Google App Engine Java SDK
  4. Install Eclipse
1. Install google plugins for Eclipse.

2. Create new application project in eclipse.
In toolbox of eclipse, click on google icon or GDT pulldown and select 'new web application project.
now deselect Use GWT checkbox under Google sdks field. and link your GAE Java SDK via the “configure SDK” link.

 now click on finish.

3. Hello World
Check the project directory, nothing is new in it. it is same as android studio and normal java web project structure. you can do java coding in java file under 'src' folder, that is highlighted in below picture. 

The new part is appengine-web.xml file which is under 'war' folder. Google App Engine need this to run and deploy the application.

4. Run Application locally.
To run application locally, right click on project and go to run as option and select web application. now open browser and open http://localhost:8888/  here you can see all your projects. click on project name to see servlet of it.

5. Deploy it to Google app engine
Register an account on https://appengine.google.com/, and create an application ID for your web application.In this demonstration, I created an application ID, named “helloworld-160509”, and put it in appengine-web.xml

Now click on Click on GAE deploy button on the toolbar.
Sign in with your Google account and click on the Deploy button.If everything is fine, the hello world web application will be deployed and provide you the URL. to Access application like http://helloworld-160509.appspot.com/

, ,

No comments:

Post a Comment