drie

drie documentation

Welcome to the drie documentation. You'll find comprehensive guides and documentation to help you start working with drie as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Support

Try a Java Spark Microframework app on drie

Quickstart on how to run a simple Java REST app on the drie platform.

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: support@drie.co

1. Get the Java drie starter app

We will use drie's Java starter app. Go to:
https://github.com/drie-demo-1/drie-java-starter-app

2. Create a new branch

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:

my-new-branch-kjsjh

3. Edit "index.ftl" and commit the change

Click through to
"src/main/resources/spark/template/freemarker/index.ftl"
and edit line 10 with any hello message you want and commit the change.

4. Confirm that your commit triggered a build

Navigate to:
https://github.com/drie-demo-1/drie-java-starter-app/commits/my-new-branch-kjsjh

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.

5. Verify that your change was deployed

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!

Command Line Method

For those who would rather work on the command line, here are the commands:

# 1. Get the Node.js drie starter app
$ git clone git@github.com: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

Try a Java Spark Microframework app on drie

Quickstart on how to run a simple Java REST app on the drie platform.