Let's try out a Java Spark Microframework app on drie using our starter app and GitHub!
You have drie installed
This guide assumes you have access to an instance of drie. If you need more information on how to get started - get in touch: email@example.com
We will use drie's Java starter app. Go to:
Create a new branch for yourself by clicking the "Branch: master" drop-down button and typing in your new branch name. In this example, the branch name is:
Click through to
and edit line 10 with any hello message you want and commit the change.
You should see some colored indicators showing that your commit is building. This Java build takes a while, so the yellow indicator or green check mark might take about a minute to appear. Click on the colored indicator when it appears.
You should land on the drie dashboard and see the current build status.
If you clicked on the indicator when it was a yellow circle, you'll probably have to refresh your browser a few times to see when your build finishes.
If you clicked on the indicator when it was a green check mark, it means the build finished and you'll see the status of the build.
When it's done, click on the "Your app is hosted on:" link and you will see the change you committed deployed on drie!
For those who would rather work on the command line, here are the commands:
# 1. Get the Node.js drie starter app $ git clone firstname.lastname@example.org:drie-demo-1/drie-java-starter-app.git $ cd drie-java-starter-app # 2. Create a new branch called "my-new-branch-kjsjh" $ git checkout -b my-new-branch-kjsjh # 3. Edit index.js and commit the change $ vi src/main/resources/spark/template/freemarker/index.ftl $ git commit -am "Changed hello message" $ git push origin my-new-branch-kjsjh # The rest you have to do on your web browser