Skip to content

Latest commit

 

History

History
61 lines (35 loc) · 3.05 KB

.che-didact-guide.md

File metadata and controls

61 lines (35 loc) · 3.05 KB

Welcome to Postitapp workspace

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!

Architecture

A Cloud ready Post it app composed of

  • a Quarkus backend,
  • a Nodejs/Reactjs frontend and
  • a Mongodb database

Application topology

Mongo 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

Start the Quarkus backend in Dev Mode

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

Start the React.js frontend in Dev Mode

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

Change the backend Java files

Open and Edit these files, observe that live reload works

  • Open Posts.java
  • Open PostInput.js

Debug the Quarkus backend

Add a breakpoint and run start the debug mode by pressing F5 or click here

Build and the native application

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 :)

Start the Quarkus backend in Native Mode

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