You need just the following to get start with quarkus
- JDK 11+
- Maven or Gradle
My developer setup is Windows 11 laptop with WSL2 (Windows Subsystem for Linux). Im running Ubuntu 20.04 on wsl2. I use Vscode with the remote development pack. There i install Java and Maven via SDK man. Next install Docker Desktop on windows 11. Then i connect to Ubuntu on WSL and develop on the WSL Linux host.
This took me less than 30 minutes to setup and its extremely fast and easy to work with. It seems to run at near native speeds.
instructions for setting up Wsl2 on Windows 11
windows11-wsl2-linux-java-dev-setup
instructions for setting up Java and Maven via SDKMAN on Ubuntu
sdkman-java-ubuntu2004-install
use vscode to connect to WSL Ubuntu, create a folder under your homedir
- generate skeleton quarkus app with working rest endpoint and all required maven dependencies
1
2
3
4
5
6
mvn io.quarkus.platform:quarkus-maven-plugin:2.6.1.Final:create \
-DprojectGroupId=org.jdbc.test \
-DprojectArtifactId=rest-book \
-DclassName="org.jdbc.test.book.BookResource" \
-Dpath="/api/books" \
-Dextensions="resteasy-jsonb,smallrye-openapi,jdbc-mysql,quarkus-agroal"
start the app
1
2
cd rest-book ;\
mvn quarkus:dev
validate that app works
1
2
3
[INFO] Your new application has been created in /home/swapanc/github/quarkus-persistence/test/rest-book
[INFO] Navigate into this directory and launch your application with mvn quarkus:dev
[INFO] Your application will be accessible on http://localhost:8080
-
Previous
java vscode remote dev setup windows 11 wsl2 docker desktop -
Next
Springboot 2 oracle Universal Connection Pool configuration(UCP)