Chapter 3. Creating a Basic Worklight Application

In this chapter, we will learn how to build a simple "Hello World" application for different environments, gain an understanding of the project directory structure, and learn how to create skins for specific devices. Using Worklight to create user interfaces offers a big development advantage on the client and server sides. In general, developers face problems during development. Support for the creation of hybrid apps using other products is typically not easy to define use cases and conduct debugging and preview testing for enterprise applications. However, with Worklight, developers can create simple architecture and amend enhanced structures to generate mobile application.

Creating a simple IBM Worklight application

Let's start by creating a simple HelloWorld Worklight project.

Note

The steps described for creating an app are similar for IBM Worklight Studio and Eclipse IDE.

The following is what you'll need to do:

  1. Start IBM Worklight Studio.
  2. Navigate to File | New and select Worklight Project, as shown in the following screenshot:
    Creating a simple IBM Worklight application

    Creating a new Worklight project

  3. In the dialog that is displayed in the following screenshot, select Hybrid Application as the type of application defined in project templates, enter HelloWorld as the name of the first mobile project, and click on Next.
    Creating a simple IBM Worklight application
  4. You will see another dialog for Hybrid Application. In Application name, provide HelloWorld as the name of the application. Leave the checkboxes unchecked for now; these are used to extend supported JavaScript libraries into the app. Click on Finish.
    Creating a simple IBM Worklight application
  5. After clicking on Finish, you will see your project has been created from design perspective in Project Explorer, as shown in the following screenshot:
    Creating a simple IBM Worklight application
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.77.250