Install devonfw-ide:
-
Install git if not already installed (download and run installer or run
winget install Git.Git
in PowerShell or CMD) -
Create the folder
C:\Projects\devonfw-training
(if you do not have Windows, useprojects/devonfw-training
in root or if not permitted in home). -
Download
devonfw-ide-scripts
package from here -
Extract the contents of
devonfw-ide-scripts
package into the above created folderdevonfw-training
. The contents of the package shall be directly in the folderdevonfw-training
without any sub-folder such asdevonfw-ide-scripts
. If you have no idea how to do this, install 7-Zip (winget install 7zip.7zip
) and use it to extract. -
Run the
setup
script (on Windowssetup.bat
) fromdevonfw-training
folder. -
Enter this settings-URL: https://github.com/devonfw-training/java-quarkus-settings.git
-
Read and confirm the terms-of-use.
-
wait until the setup process has completed.
-
Select
workspaces
folder of your installation in windows explorer and choseGit Bash here
from the context menu. -
If you do not have already Docker Desktop or Rancher Desktop installed, you should do so by running in Git-Bash the command:
devon docker setup
Now we build our application backend
:
-
Go to folder
workspaces/main/java-quarkus/
indevonfw-training
. -
In Windows-Explorer right-click it and select
Git Bash Here
. -
In the git-bash at this folder run the following command:
mvn clean install -DskipTests
Please choose your favorite IDE:
Next, we import the new backend
project into our Eclipse IDE:
-
devon eclipse
-
In Eclipse
Import
asExisting Maven Project
, there clickBrowse
and choose yourbackend
folder inworkspaces/main/java-quarkus
. -
Now find the green bug icon in the Eclipse toolbar and click on the down-arrow right to it.
-
Click
Debug Configuration
from the menu -
In the appearing
Debug Configuration
popup window selectQuarkus application
from the list on the left. -
Click on the first icon from the bar above that list (with tooltip
New launch configuration
) -
Change the
Name
toapp
and ensure theProject
is set toapp
. -
Click on
Debug
to start your app in debug mode. -
Open http://localhost:8080/ in your browser and you should see the quarkus welcome page of the app.
The frontend is written in react and can be build with yarn. Please go into frontend
and run yarn install
on a command line. Please do not use npm.
When the build was successful and the backand is running, too, you can start the frontend by running yarn start
in the same directory.
The frontend is reachable under http://localhost:3000/. You can append the id of the list you want to load, default is 1: http://localhost:3000/1.