Bck2BrwsrViaCLI

From APIDesign

Revision as of 18:05, 13 February 2013 by JaroslavTulach (Talk | contribs)
Jump to: navigation, search

The Bck2Brwsr project is publishing artifact snapshots to Maven repository since Feb 13, 2013. That means there is an easy, three steps, way to start coding for the browser yourself. All you need is Java and Maven installed. Type:

$ mvn archetype:generate -DarchetypeGroupId=org.apidesign.bck2brwsr \
 -DarchetypeArtifactId=mojo -DarchetypeVersion=0.3-SNAPSHOT \
 -DarchetypeRepository=https://maven.java.net/content/repositories/snapshots

Maven will download its libraries. The it asks you few questions (for example name of the project you want to create) and generate the skeleton project for you. Then just switch to the create subfolder:

$ cd nameofyourproject

and you are ready to compile and launch your first Bck2Brwsr project:

$ mvn process-classes org.apidesign.bck2brwsr:mojo:0.3-SNAPSHOT:brwsr

a browser window will open and you can check how easy it is to synchronize content of various elements on the HTML page, to compute derived properties and how to draw a text on a HTML canvas.

Of course, you don't have to work only from command line. Good IDEs, including NetBeans will open the generated project and provide you all comfort you are used to when coding in Java.

Enjoy Java which has just returned bck2brwsr!

Personal tools
buy