Presentation is loading. Please wait.

Presentation is loading. Please wait.

Platform as a Service Applications

Similar presentations


Presentation on theme: "Platform as a Service Applications"— Presentation transcript:

1 Platform as a Service Applications

2 Cloud Platform Cloud platform acts as run-time enviroments that supports a set of programming languages, compiled or interpreted. Cloud platform may offer additional services such as reusable components and libraries. Typically, cloud platform will offer plug-ins into common development environments, such as Eclipse, to facilitate development, testing, and deployment

3 PaaS examples: - Google App Engine - Microsoft Windows Azure - Force.com

4 Google App Engine - Functions
Google App Engine enables developers to build web applications on the same scalable systems that power google’s own applications It means that, by using Google App Engine, you can easily design scalable applications that grow from one user to millions of users without infrastructure headaches

5 Set Development Environment for Google App Engine

6 Install the Java SE Go to to get the most updated Java SE

7 Install Eclipse Luna Go to https://www.eclipse.org/downloads/
to get the most updated Eclipse

8 Install the App Engine SDK
We will develop and deploy Java application for Google App Engine using the App Engine Java software development kit (SDK). The SDK includes software for a web server that you can run on your own computer to test your Java applications. The server simulates all of the App Engine services, including a local version of the datastore, Google Accounts, and the ability to fetch URLs and send from your computer using the App Engine APIs.

9 Install Google App Engline Plugin
Eclipse->Help->Install New Software Type in Select Google Plugin for Eclipse Select GWT Designer for GPE Select SDKs

10 Install DataNucleus Plugin
DataNucleus provides open source products supporting data access using all standardised APIs (JDO, JPA) to a very wide-range of datastores (RDBMS, ODBMS, Map-based, Web-based, documents, etc) supporting querying using a range of query languages

11 Eclipse->Help->Install New Software
Type in

12 App Engine Java applications use the Java Servlet standard for interacting with the web server environment. An application's files, including compiled classes, JARs, static files and configuration files, are arranged in a directory structure using the WAR standard layout for Java web applications. A WAR file (or Web application ARchive) is a JAR file used to distribute a collection of JavaServer Pages, Java Servlets, Java classes, XML files, tag libraries, static web pages (HTML and related files) and other resources that together constitute a web application.

13 Create a project MyProject
Create a new project by clicking the New Web Application Project button in the toolbar: Give the project a "Project name" of MyProject and a "Package" of myproject. Uncheck "Use Google Web Toolkit," and ensure "Use Google App Engine" is checked.

14 Java Servlet App Engine Java applications use the Java Servlet API to interact with the web server. An HTTP servlet is an application class that can process and respond to web requests. MyProjectServlet.java package myproject; import java.io.IOException; import javax.servlet.http.*; @SuppressWarnings("serial") public class MyProjectServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType("text/plain"); resp.getWriter().println("Hello, world"); }

15 web.xml <?xml version="1.0" encoding="utf-8"?>
<web-app xmlns:xsi=" xmlns=" xmlns:web=" xsi:schemaLocation=" version="2.5"> <servlet> <servlet-name>MyProject</servlet-name> <servlet-class>myproject.MyProjectServlet</servlet-class> </servlet> <servlet-mapping> <url-pattern>/myproject</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app>

16 appengine-web.xml App Engine needs this file to figure out how to deploy and run the application <?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns=" <application></application> <version>1</version>

17 Test the application locally

18 Deploy your application to Google App Engine
You create and manage App Engine web applications from the App Engine Administration Console, at the following URL: Sign in to App Engine using your Google account.

19 To create a new application, click the "Create an Application" button
To create a new application, click the "Create an Application" button. Follow the instructions to register an application ID, a name unique to this application. Edit the appengine-web.xml file, then change the value of the <application> element to be your registered application ID. Go to projectname->property->Google->App Engine to check the Application ID and version Go to projectname->Google->Deploy to App Engine to deploy your application

20 TheURL for your website begins with your application ID:

21 Force.com Force.com is a cloud platform for building and runing
- apps that automate and extend your business process - apps with workfolow and analytics - mobile apps - social apps The application running on Force.com is more data-oriented than code-oriended.

22 Force.com provides a cloud platform that integrates:
- infrastructure - software stack - backup and storages - performance optimizations - security

23 External Programmatic Access
- Force.com exposes all customer specific configurations (forms, reports, workflows, user privileges, customization, business logic) as metadata with is programmatically accessible. - A Web Services API (SOAP) allows access to all Force.com application data from any environment. - In addition to conventional database access, Force.com employs an external search engine that provides full-indexing of unstructured data.

24 Apex - Force.com uses Apex to code business logics. - Apex is a proprietary programming language that uses a Java-like syntax but acts much more like database stored procedures. - It allows developers to add business logic to events, such as button clicks or record updates

25 User Interface Two tools are available for building the user interface for on-demand applications: UI builder and Visualforce - UI Builder is the simpler approach. It generates a default user interface based on the data properties of the application. For instance, the defined data types will influence input display components and options.

26 - Visualforce is much more powerful and can be used to create almost any user interface. -- It implements the MVC paradigm to enforce strict separation of logic from presentation and storage. -- The user interface can leverage dynamic, client-side disply functionality, such as CSS, DHTML, AJAX or Adobe Flex, in addition to ordinary HTML.

27 AppExchange - Force.com provides a marketplace called AppExchange for buying and selling SaaS service - Once developers have completed and tested their applications, they can request publication on AppExchange providing a description of the services along with details of the pricing and support model.

28 Hands-on experience on Force.com

29 Hands-on experience on Force.com
In your browser, go to  Fill in the fields about you and your company. In the  Address field, make sure to use a public address you can easily check from a Web browser. Type a unique Username. Note that this field is also in the form of an address, but it does not have to be the same as your address, and in fact, it’s usually better if they aren’t the same. Your username is your login and your identity on developer.salesforce.com, so you’re often better served by choosing a username such Read and then select the checkbox for the Master Subscription Agreement and then click Submit Registration. In a moment you’ll receive an with a login link. Click the link and change your password.

30 Hands-on experience on Force.com
When you create an app, you automatically create a data object that keeps track of all the elements of a particular item, such as its name, description, and price data objects are called custom objects. If you’re familiar with databases, you can think of them as a table An object comes with standard fields and screens that allow you to list, view, and edit information about the object. But you can also add your own fields to track or list just about anything you can think of

31 Hands-on experience on Force.com
Create an App Access the App from a Mobile Device Most things you create in Salesforce are available via a mobile device, giving your users full access to the information they need, no matter where they are Everything you do in the full site is reflected in the Salesforce1 mobile app Go to  select the appropriate platform, and download Salesforce1 From Setup click Mobile Administration | Salesforce1 | Settings, and then Enable the Salesforce mobile browser app

32 Hands-on experience on Force.com
Add an Field to your Object From Setup, click Create | Objects Scroll down to Custom Fields and Relationships, and click New Try Out the App


Download ppt "Platform as a Service Applications"

Similar presentations


Ads by Google