Skip to content

rashansmith/Spring-To-Quarkus-Spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot ReSTful API Example - Migration To Quarkus

The App Dev Practice has created a Spring Boot application that exposes a ReSTful API. The application can be used as a starter spring-boot application or as a unit to deploy to OCP clusters.

Here is a link to the original repo: https://github.com/redhat-appdev-practice/spring-rest-surveygroups

Link to this repo in AppDev Practice: https://github.com/redhat-appdev-practice/survey-quarkus-spring-service

In this repo I migrated the Spring Boot application to Quarkus: https://quarkus.io/

Current Strategy

To get the dependencies needed to quarkify this app, a sample Quarkus app was made: https://github.com/rashansmith/Spring-To-Quarkus-Quarkus/tree/master/survey-quarkus-spring-service

and it's pom.xml elements were transferred to this repo, and non quarkus Spring dependencies were deleted.

Building

mvnw clean package

Runnning Postgres

docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 \
           --name postgres-quarkus-hibernate -e POSTGRES_USER=hibernate \
           -e POSTGRES_PASSWORD=hibernate -e POSTGRES_DB=hibernate_db \
           -p 5432:5432 postgres:10.5

Running Locally

You can run the quarkus application locally by issueing the following command:

./mvnw quarkus:dev

About

Repository that migrates a SpringBoot Application to Quarkus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published