mmartofel / todo-spring-quarkus

How to manage Spring Boot code to be run with Quarkus with no changes (demo)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

todo-spring-quarkus

A demo application that builds and runs as either Spring Boot or Quarkus! Repo supporting the blog post at https://developers.redhat.com/blog/2021/02/09/spring-boot-on-quarkus-magic-or-madness/

Run on Red Hat Developer Sandbox

Click here to use the free Red Hat Developer Sandbox to try it out on your own! The PostgreSQL database will be embedded as a sidecar container in the workspace!

Manual Setup

Run the PostgreSQL database:

docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 --name tododb -e POSTGRES_USER=todo -e POSTGRES_PASSWORD=todo -e POSTGRES_DB=tododb -p 5432:5432 postgres:11.5

To run as Spring Boot:

./mvnw clean spring-boot:run

To run as Quarkus:

./.mvnw clean spring-boot:run

About

How to manage Spring Boot code to be run with Quarkus with no changes (demo)

License:Apache License 2.0


Languages

Language:JavaScript 34.3%Language:Java 32.9%Language:HTML 21.5%Language:Shell 5.9%Language:CSS 5.4%