Skip to content

Tutorial ~ Project Directory Structure

Frank Wienberg edited this page Mar 14, 2014 · 2 revisions

Overview of the directory structure

In this example project, any Jangaroo source code is to be located in _PROJECT_HOME_/src/main/joo/ and any other web application files, such as HTML files, are located in _PROJECT_HOME_/src/main/webapp/. The Maven build file pom.xml has to be placed directly in _PROJECT_HOME_ and will build the example and create the resulting Web application in the target directory. You could use this example setup and the build file as a template for small Jangaroo projects.

In _PROJECT_HOME_, create the following directories and (so far empty) files:

File Name Description
src/main/joo/HelloWorld.as for your first ActionScript 3 source file that will be compiled to JavaScript and run in any browser
src/main/webapp/index.html for an HTML wrapper that starts your application
pom.xml for the Maven build instructions for your project

If you do not want to create files and copy text into these files manually, but just want to study a working example, you can download and unzip a slightly more sophisticated "hello world" example [here](http://repo.jangaroo.net/maven2/net/jangaroo/jangaroo-compiler/0.8.1 /jangaroo-compiler-0.8.1-examples.zip).

Let's first look at the actual Jangaroo code in HelloWorld.as.

Clone this wiki locally