Giter Club home page Giter Club logo

mar-sample-spring-boot's Introduction

Managed Application Runtime - Spring Boot Application Example

This is an example Spring Boot application for Qt Cloud Services - Managed Application Runtime ("MAR"). More information about Spring Boot.

Getting Started

See the Managed Application Runtime getting started documentation at Qt Cloud Services Developer Documentation

Details About This Example

Procfile

Upon deployment Qt Cloud Services MAR container provides an environmental variable $PORT for which the HTTPS requests hitting Qt Cloud Services load balancer SSL port are internally forwarded into.

Running and Testing Application Locally

You can start this application from the application root directory with the same following command as declared in the Procfile once the project has been built with Maven:

*nix

mvn clean install
java $JAVA_OPTS -Dserver.port=$PORT -jar target/*.jar

You may replace the $PORT environmental variable with the chosen port number that your local shell process is privileged to run. If the $PORT variable is omitted, the HTTP server defaults the port 8080.

Windows

mvn clean install
java -Dserver.port=8080 -jar target\mar-sample-spring-boot-0.0.1-SNAPSHOT.jar

Once the server has been started with the default port number, you may test the application with your web browser at address http://127.0.0.1:8080.

Deploying to Cloud

Please see the Qt Cloud Services Developer Documentation

NOTE: Without tweaking any command-line Java arguments regarding the heap memory usage deploy the sample app only to the instance which fulfills the following Runtime Size: ar-1-small (2CU, 512MB)

mar-sample-spring-boot's People

Contributors

miskun avatar

Watchers

James Cloos avatar Tero Niemistö avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.