This repository contains simple examples of Cloudfier applications.
For instructions on how to get these example apps into Cloudfier, read this.
You can play with the JavaEE-based code generation on your own machine.
- an internet connection
- git
- Java 1.8
- Maven 3.0.x
- Postgres 9.x
git clone https://github.com/abstratt/cloudfier-examples.git
# change into any of the application directories
cd cloudfier-examples/expenses
# push the application to a temp repository on develop.cloudfier.com and generate the code
mvn com.abstratt:cloudfier-maven-plugin:publish \
com.abstratt:cloudfier-maven-plugin:generate \
-Dkirra.target.platform=jee \
-Dkirra.project.sourcedir=. \
-Dkirra.generator.override=true
At the end of this step, you will find a fully functioning JavaEE app in the current directory.
mvn clean install -DskipTests
mvn test
mvn exec:java -Dexec.arguments=initData,run -Dhttp.port=8888 -Dexec.classpathScope=test
The application REST API will be available at: http://localhost:8888/
If you would rather play through a (generic) UI, you can use this URL instead:
http://develop.cloudfier.com/kirra-api/kirra-ng/?app-uri=http://localhost:8888
If you are a TextUML Toolkit user, you can load these examples into the TextUML Toolkit as well.
- clone the entire repository as a single MDD project in the TextUML Toolkit (you will need Git support in Eclipse)
- create a second MDD project called kirra
- add the contents of kirra.tuml there
Note that in this setup, all .uml files (the actual UML models) are created at the root, and you can only visualize diagrams (if you are into that sort of stuff) by opening the .uml files, not the source.tuml files (which is possible when the source files are side-by-side with the .uml files).