Write a Google app engine program to generate n even numbers and deploy it to google cloud PDF

Title Write a Google app engine program to generate n even numbers and deploy it to google cloud
Author subramanyam neelam
Course Drilling Engineering
Institution Jawaharlal Nehru Technological University
Pages 7
File Size 561.7 KB
File Type PDF
Total Downloads 6
Total Views 209

Summary

google cloud appengine example program...


Description

Overview of Google App Engine(GAE) Google App Engine – the platform for your next great idea Google App Engine is an application hosting and development platform that powers everything from enterprise web applications to mobile games, using the same infrastructure that powers Google’s global-scale web applications. Developers know that time-to-market is critical to success, and with Google App Engine’s simple development, robust APIs and worry-free hosting, you can accelerate your application development and take advantage of simple scalability as the application grows. With support for Python, Java, and Go, you don’t have to change the way you work. Your application can take advantage of powerful APIs, High Replication data storage, and a completely hands-free hosting environment that automatically scales to meet any demand, whether you’re serving several users or several million. Google App Engine is free up to a certain level of consumed resources. Fees are charged for additional storage, bandwidth, or instance hours required by the application. It was first released as a preview version in April 2008 and came out of preview in September 2011. Developer(s) Initial release Stable release Development status Written in Operating system Platform Type License Website

Google April 7, 2008; 9 years ago 1.9.51 / 29 March 2017 Released Python, Java, Go, PHP, Node.JS linux (glibc), Windows little-endian 32bits Web framework, cloud computing platform Proprietary, LGPL cloud.google.com/appengine/

Runtimes and framework Supported programming languages include Python, Ruby, Java (and, by extension, other JVM languages such as Kotlin, Groovy, JRuby, Scala, Clojure), Go, and PHP. Node.js is also available in the flexible environment. Google has said that it plans to support more languages in the future, and that the Google App Engine has been written to be language independent. C# is also supported. Arbitrary Docker containers are also supported. Python web frameworks that run on Google App Engine include Django, CherryPy, Pyramid, Flask, web2py and webapp2, as well as a custom Google-written webapp framework and several others designed specifically for the platform that emerged since the release. Any Python framework that supports the WSGI using the CGI adapter can be used to create an application; the framework can be uploaded with the developed application. Third-party libraries written in pure Python may also be uploaded. Google App Engine supports many Java standards and frameworks. Core to this is the servlet 2.5 technology using the open-source Jetty Web Server, along with accompanying technologies such as JSP. JavaServer Faces operates with some workarounds. A newer release of App Engine Standard Java in Beta supports Java8, Servlet 3.1 and Jetty9.

Program: Hello World using Eclipse

1

“Hello World” Example with Google App Engine in Eclipse using Java Steps to use Eclipse to create a Google App Engine (GAE) Java project (hello world example), run it locally, and deploy it to Google App Engine account as follows. Pre requisite tools: 1. JDK 1.6 2. Eclipse 3.7 + Google Plugin for Eclipse 3. Google App Engine Java SDK 1.6.3.1 1. Install Google Plugin For Eclipse If you install the Google App Engine Java SDK together with “Google Plugin for Eclipse“, then go to step 2, Otherwise, get the Google App Engine Java SDK and extract it. Install the Google Plugin for Eclipse The Google Plugin for Eclipse allows you to easily create and deploy Google App Engine (GAE) applications. It can be installed from an update site just like any other Eclipse plugin. In Eclipse, select Help -> Install New Software... to open up Install dialog. Click Add... button. Enter an update site in the Location field specific to your Eclipse version. You can get the details here. Click OK. The Install dialog will refresh to display a list of available software.

Select Google Plugin for Eclipse and App Engine Java SDK as shown above. Click Next, Next, Accept and Finish. Restart Eclipse when prompted. 2. Create New Web Application Project In Eclipse toolbar, click on the Google icon, and select “New Web Application Project…” as shown in figure. Hello World using Eclipse

2

Figure: New Web Application Project

Figure – Deselect the “Google Web ToolKit“, and link your GAE Java SDK via the “configure SDK” link. 3. Hello World Review the generated project directory.

Hello World using Eclipse

3

Nothing special, a standard Java web project structure. HelloWorld/ src/ ...Java source code... META-INF/ ...other configuration... war/ ...JSPs, images, data files... WEB-INF/ ...app configuration... lib/ ...JARs for libraries... classes/ ...compiled classes... The extra is this file “appengine-web.xml“, Google App Engine need this to run and deploy the application. File : appengine-web.xml

1



To deploy, see following steps:

Figure 1.1 – Click on GAE deploy button on the toolbar.

Figure 1.2 – Sign in with your Google account and click on the Deploy button. Hello World using Eclipse

6

Result: The web application has been successfully deployed into the cloud and accessed remotely.

Hello World using Eclipse

7...


Similar Free PDFs