Java Everywhere: Write Once run Anywhere with DukeScript by Anton Epple

Java Everywhere: Write Once run Anywhere with DukeScript by Anton Epple

Author:Anton Epple
Language: eng
Format: azw3
Published: 2015-12-27T16:00:00+00:00


Set up the project

Let’s get started following the same way we start with regular HTML UI based DukeScript application. Follow the approach from Chapter 1 if you are OK with using NetBeans. If you want to stay on command line you can use:

1 $ mvn archetype:generate 2 -DarchetypeGroupId=com.dukescript.archetype 3 -DarchetypeArtifactId=knockout4j-archetype 4 -DarchetypeVersion=0.10 5 -Dexample=false

Once our application is generated, we can start modifying the sample application to avoid displaying the UI, but rather parsing our JSON file. Let’s remove:

“src/main/webapp/pages/index.html” - no UI definitions

“src/main/java/your/pkg/DataModel.java” - no UI model

“src/test” - we don’t need tests for this simple sample



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.