/maven-archetypes

Archetypes for creating DukeScript Applications

Primary LanguageJavaMIT LicenseMIT

DukeScript Archetype

Maven archetype for HTML+Java technology with additional presenters provided by DukeScript organization.

Get started by following the DukeScript Getting Started tutorial. Or, if you prefer command line, you can use the Maven archetypes directly. There is simple archetype to create a basic application:

mvn archetype:generate 
	-DarchetypeGroupId=com.dukescript.archetype
	-DarchetypeArtifactId=knockout4j-archetype 
	-DarchetypeVersion=0.9

There is another, more complex archetype to generate skeleton of a CRUD application that shows how you can do client-server communication and reuse Model code on both ends:

mvn archetype:generate 
	-DarchetypeGroupId=com.dukescript.archetype
	-DarchetypeArtifactId=crud4j-archetype 
	-DarchetypeVersion=0.9

Both archetypes can generate subprojects for each of the supported platforms. Currently we support iOS, Desktop (via JavaFX), Android, NetBeans plugin, and Browser (via bck2brwsr). The JavaFX-based project will always be generated, as this is integrated with the NetBeans visual debugger and the other debugging functions. The other subprojects are only generated on demand using these properties:

Run in Browser: -Dwebpath=client-web

Create NetBeans Module: -Dnetbeanspath=client-netbeans

Create iOS project: -Diospath=client-ios

Create Android project: -Dandroidpath=client-android

Have fun playing with DukeScript Archetypes and let us know if you find any problems!