This tutorial will show you how to start with Vorto with the least effort required.
In this tutorial, you will create a Web user interface for an information model.
- You have installed Eclipse (refer to System Requirements).
- You have installed the Vorto Toolset (refer to Installing the Vorto Toolset).
- You have started Eclipse.
- Start Eclipse.
- In the main menu, click Window > Perspective > Open Perspective > Other.
The Open Perspective dialog opens.
- Select Vorto and click OK.
The Vorto Perspective opens.
- In the Model Repository view, search for the information model TI_SensorTag (the information model you want to generate the code from) by entering the string
TI_SensorTagin the Search entry field and clicking the Search button.
- Select the information model TI_SensorTag, right-click and choose Generate code from the context menu.
The Generator Overview dialog opens.
- Choose the Web UI code generator for generating the souce code for the Web user interface and click the Generate button.
The code is generated.
- Select the Java perspective to check the generated code.
The following Java projects have been generated:
java.example.model(Java beans for the selected information model)
webdevice.example(Web UI for the selected information model)
- Select both projects, right-click and choose Maven > Update Project… from the context menu.
- Click OK.
Maven updates the projects.
- Select the project
webdevice.example, right-click and choose Run As > Java Application from the context menu.
- In the Select type entry field, enter
Applicationto filter for applications.
- Select the
Application - webdevice.exampleline and click OK.
The Web application starts.
- In the address bar of your browser, enter localhost:8080/webdevice.
The Web UI opens.
Congratulations! You have just created a Web application with the least effort with the magic of Vorto.
Next: Why not try defining your own information models? :D