Basic project architecture for JavaEE and Aurelia on WildFly. This example is based on the Aurelia Contacts App.
To run the app, follow these steps.
- Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
- From the project folder, execute the following command:
npm install
- Ensure that Gulp is installed. If you need to install it, use the following command:
npm install -g gulp
- Ensure that jspm is installed. If you need to install it, use the following command:
npm install -g jspm
Note: jspm queries GitHub to install semver packages, but GitHub has a rate limit on anonymous API requests. It is advised that you configure jspm with your GitHub credentials in order to avoid problems. You can do this by executing
jspm endpoint config github
and following the prompts.
- Install the client-side dependencies with jspm:
jspm install
Note: Windows users, if you experience an error of "unknown command unzip" you can solve this problem by doing
npm install -g unzip
and then re-runningjspm install
.
- Ensure that WildFly is extracted somewhere on your drive.
- Add the path to the WildFly directory to the JBOSS_HOME env variable.
- Start the WildFly server.
- Adjust the
config/src/main/resources/configuration.properties
to your needs and save it aslocal.properties
. - On the cmd line, got to the config directory.
- Run
mvn process-resources wildfly:execute-commands -P "config"