Skip to content

Newbie Suggestions #1

@GlenKPeterson

Description

@GlenKPeterson

I'm excited about getting started with Kotlin and ebean in a web application! Thank you for making an example!

In order to get the Maven build to complete, I had to remove -SNAPSHOT from the versions of avaje-ebeanorm-ignite and avaje-ebeanorm in pom.xml.

In order to the war file to run, I had to edit (before building) src/main/resources/ebean.properties as follows:

datasource.db.username=fredster
datasource.db.password=Ra22amataz

Then

mvn clean package

Then, to get postgres, I used docker:

docker pull postgres

docker run \
    -d \
    --name some-postgres \
    -e POSTGRES_DB=kt \
    -e POSTGRES_PASSWORD=Ra22amataz \
    -e POSTGRES_USER=fredster \
    -p 5432:5432 \
    postgres

Finally, I ran it (I think) as you suggested:

java -jar example-kotlin-web-1.1-SNAPSHOT.war

I point my browser at http://localhost:8080/ I see this:
screenshot from 2016-05-24 18-45-00

Yay!?

At the terminal, logging information keeps pouring out, but I'm not seeing exceptions any more, so I assume it's working. I'm still not really clear what I'm looking at though (in the browser), or if it's what was intended. Is this right?

Anyway, I thought you might like these notes for other newbies like me to have an easier time trying this out.

I should say that I'm running Ubuntu 16.04 64-bit with OpenJDK 8 installed. Obviously, Java and maven are prerequisites as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions