Google app engine


Published on

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Google app engine

  1. 1. Google App Engine
  2. 2. Developed by: Shreyash Gupta 5th CE-1 110400107034 Google App Engine
  3. 3. What are Google apps? • Apps is a form Short of application. An app is a piece of software. It can run on the Internet, on your computer, or on your phone or other electronic device. • Google refers to their online services as apps, but they also sell a specific suite of services known as Google Apps and have an application hosting service called Google Appengine.
  4. 4. What is google appengine? • Google App Engine is a way to write your own Web applications and have them hosted on Google servers. • Google Apps can be found on the Web at “” • And Google App Engine can be found on the Web at “”.
  5. 5. Cont… •You can serve your app using a free name on the domain. You can share your application with the world, or limit access to members of your organization.
  6. 6. How to make Google app? • To make google app we need following 1. eclipse 2. google plugin for eclipse
  7. 7. Eclipse • Eclipse is a multi-language software development environment which is made an integrated development environment (IDE) and an extensible plugin system. It is written mostly in java and can be used to develop applications in Java and, by means of various plug- ins, other programming language including C, C++ etc.
  8. 8. How to download eclipse? • Eclipse is an open source software . • Its different versions are easily available on internet . • • To download eclipse first you have to install java run time environment.
  9. 9. Installing eclipse: • Go to the site: • • Select the eclipse version 3.6
  10. 10. Installing eclipse classic:
  11. 11. Step1:Check Google plugin for eclipse
  12. 12. Step2:click on install button
  13. 13. Installation started:
  14. 14. Plugin installed:
  15. 15. Creating web application project
  16. 16. Creating new web application project:
  17. 17. Project created:
  18. 18. The Project Directory • A single directory named Project_Name/ for all project files. • Subdirectory named src/ contains the Java source code • Subdirectory named war/ contains the complete application arranged in the WAR format. • Build process compiles the Java source files and puts the compiled classes in the appropriate location in war/
  19. 19. The servlet class: • App Engine Java applications use the Java Servlet API to interact with the web server. • An HTTPservlet is an application class that can process and respond to web requests. • Servlet class extends either the javax.servlet.GenericServlet class or the javax.servlet.http.HttpServlet class.
  20. 20. Servlet class:
  21. 21. The web.xml File: • When the web server receives a request, web.xml file is used to determines which servlet class to call • web.xml resides in the war/WEB-INF/ directory • web.xml file declares a servlet named Yusra, and maps it to the URL path /yusra • whenever the user fetches a URL path that is not already mapped to a servlet, the server should check for a file named index.html in that directory and serve it if found.
  22. 22. Xml file:
  23. 23. The appengine-web.xml File • This file is named appengine-web.xml, and resides in WEB-INF/ alongside web.xml • It includes: – The registered ID of your application (Eclipse creates this with an empty ID for you to fill in later), – The version number of your application, – Lists of files: • Static files (such as images and CSS) and resource files (such as JSPs and other application data)
  24. 24. appengine-web.xml file:
  25. 25. Running the project: • The App Engine SDK includes a web server application you can use to test your application • Steps: – Make sure the project (“Yusra") is selected, – Right click and select Run As menu – Select Web Application • This should start Jetty on http://localhost:8888/
  26. 26. Testing the Application:
  27. 27. Deploying Application: • Now deploy your application to the Google cloud • You must have a google mail account • Give application ID to you application – Application ID will be stored in file (“appengine-web.xml” • First you will have to register application on google cloud – Using the same application ID • Then perform deploying operation
  28. 28. Registering the Application 1. App Engine Administration Console, at the following URL: 2. Sign in to App Engine using your Google account 3. To create a new application: a) Click the "Create an Application" button b) Follow the instructions to register an application ID, a name unique to this application c)If you select to use the free domain name, the full URL for the application will be
  29. 29. Sign in to gmail account:
  30. 30. Uploading From Eclipse • To upload your application from Eclipse, click the App Engine deploy button on the toolbar • Click the Deploy button • Enter your Google account username (your email address) and password when prompted • Eclipse gets the application ID and version information from the appengine-web.xml file, and uploads the contents of the war/ directory.
  31. 31. Deploying project:
  32. 32. Click on deploy button:
  33. 33. Deployment started:
  34. 34. Accessing Your Application • You can now see your application running on App Engine • If you set up a free domain name, the URL for your website begins with your application ID: • In our example it will be
  35. 35. Uploaded successfully: