You will find the tasks of this assignment on CODE_ASSIGNMENT file
This is based on https://github.com/quarkusio/quarkus-quickstarts
To compile and run this demo you will need:
- JDK 17+
In addition, you will need either a PostgreSQL database, or Docker to run one.
Make sure that JAVA_HOME environment variables has been set, and that a JDK 17+ java command is on the path.
Execute the Maven build on the root of the project:
./mvnw packageThe Maven Quarkus plugin provides a development mode that supports live coding. To try this out:
./mvnw quarkus:devIn this mode you can make changes to the code and have the changes immediately applied, by just refreshing your browser.
Hot reload works even when modifying your JPA entities.
Try it! Even the database schema will be updated on the fly.
When you're done iterating in developer mode, you can run the application as a conventional jar file.
First compile it:
./mvnw packageNext we need to make sure you have a PostgreSQL instance running (Quarkus automatically starts one for dev and test mode). To set up a PostgreSQL database with Docker:
docker run -it --rm=true --name quarkus_test -e POSTGRES_USER=quarkus_test -e POSTGRES_PASSWORD=quarkus_test -e POSTGRES_DB=quarkus_test -p 15432:5432 postgres:13.3Connection properties for the Agroal datasource are defined in the standard Quarkus configuration file,
src/main/resources/application.properties.
Then run it:
java -jar ./target/quarkus-app/quarkus-run.jarHave a look at how fast it boots.
Or measure total native memory consumption...
Navigate to:
http://localhost:8080/index.html
Have fun, and join the team of contributors!