Skip to content

kintohub/springboot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KintoHub Spring Boot Example

Overview

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". It can be built easily for microservice on KintoHub!

Live Example

About KintoHub:

KintoHub aligns teams to ship & operate cloud native apps with ease. Learn More

Deployment

  1. Apply this template to your Github
  2. Create a Microservice Block on KintoHub
  3. Connect your GithubApp to KintoHub and select the Repository you just generated on your account.
  4. Set the name of your kinto block
  5. Choose Java as the language and openjdk-8-alpine as the version
  6. Set the Build Command as ./mvnw clean package
  7. Set the Start Command as java -jar ./target/springboot-example-1.0.0.jar
  8. Set the Port as 80

You're now good to go! Click Create Microservice. Now click Build Latest Commit

Once complete, Click Add to Project NOTE: Please assign at least 256MB memory for your Java microservice block during the deployment.

Follow the instruction to create a new project. Once created, you should be able to access your API endpoints.

Installation & Local Run

Ensure you have Java 8 or higher.

./mvnw spring-boot:run

Usage

Optional Environment Variables

Default value = Hello, please refer to the .env-example file

GREETING=Hi

API Call

Local:

curl -X GET http://localhost/hello/world

On KintoHub:

curl -X GET http://<EnvironmentHostName>/<KintoBlockName>/hello/world

Please refer to Accessing API Endpoints for the setup instruction

Try this Live Example !

Response

{
  "message": "Hello world"
}

What's Next?

You can do a lot with KintoHub and your deployed application. Some helpful links for next steps that you may consider with this project.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages