This guide contains the instructions to build and run the Postit app in this workspace.
The guide is interactive. You can click on the below links to open files or start the predefined commands.
Powered by Eclipse Che/ and VSCode Didact.
Enjoy!
A Cloud ready Post it app composed of
- a Quarkus backend,
- a Nodejs/Reactjs frontend and
- a Mongodb database
A mongo database comes with workspace.
The predefined task show posts
will run the right mongo cli
command do display the list of posts in your database.
- Run the
show post
predefined task
The predefined task start DEVMODE quarkus-backend
will start the quarkus backend in Dev Mode. Once it is started, the debug mode and live reload will be available.
- Run the
start DEVMODE quarkus-backend
predefined task
The predefined task start DEVMODE node-frontend
will start the React.js frontend in Dev Mode. Once it is started, live reload will be available.
- Run the
start DEVMODE quarkus-backend
predefined task
Open and Edit these files, observe that live reload works
- Open Posts.java
- Open PostInput.js
Add a breakpoint and run start the debug mode by pressing F5
or click here
The predefined task build NATIVE quarkus-backend
will build the Quarkus native image with GraalVM. This task will run inside the quarkus-backend-dev
container which has Maven
, Java
and GraalVM
pre-installed.
- Run the
build NATIVE quarkus-backend
predefined task
Generation could take some time, be patient :)
The predefined task start NATIVE quarkus-backend
will start the quarkus backend in Native Mode. The native mode runs in a dedicated container based on ubi-minimal
image. It contains just the needed pieces to run the native app. And startup is ... SUPERSONIC.
- Run the
start NATIVE quarkus-backend
predefined task
That's it