A demonstration of a Java application deployed as an executable war with all dependencies included.
- Startup/shutdown
- Status page
- Database migrations (TODO)
- Heroku ready (TODO)
- Logging with logback
- Building with gradle
- LDAP authentication/authorization (TODO)
- Oracle SSO authentication/authorization (TODO)
Prerequisites: Java 7, Eclipse/IDEA
- Download the project:
git clone [email protected]:steria/java-ee-turnkey
- Build the Eclipse project definition:
gradlew eclipse
(alternatively:gradlew idea
) - Import project into Eclipse/IDEA
- Run all tests
- Start
no.steria.turnkey.main.TurnkeyMain
as a main class - Verify by going to http://localhost:5001
Prerequisites: Java 7
Either: gradlew build && java -jar build/libs/*.war
Verify by going to http://localhost:10080/person
or
gradlew run
Verify by going to http://localhost:8888/person
Prerequisites: Java 7, "Heroku Toolbelt":https://toolbelt.herokuapp.com/
- Download the project:
git clone [email protected]:steria/java-ee-turnkey
- Sign up for Heroku at https://api.heroku.com/signup
- Verify signup and installation of toolbelt:
heroku login
- Create a heroku project:
heroku create --stack cedar instance_name
- Push the code:
git push heroku master
- Open the web browser on your project:
heroku open
For more info, see https://devcenter.heroku.com/