Image for post
Image for post

Initialize a full-stack app is an easy task. Connect two seamlessly is a bit trickier. You can call /hello endpoint without any Swagger or other libraries. But when you have, say, 20 endpoints to work with, it's good to standardize your API calls.

This article covers:

  1. More complex than /hello REST API on Quarkus that will be used by our frontend
  2. Setup Swagger both on Quarkus and React
  3. Create Networking React class that will be used to fetch our data

Other articles of this Series:

  1. Build, run and deploy React app with Quarkus
  2. This article
  3. Handle Security with Swagger(Upcoming)


Image for post
Image for post

If your project needs UI, React probably is a good option for any middle-size service. With Quarkus, it’s super easy to serve your React app.

This article covers:

  1. Setup node and dependencies required for React
  2. Init basic React project
  3. Configure React to serve from Quarkus
  4. Build and watch React project from maven
  5. Deploy minified React on maven package

Initial setup

In order to React with JSX and other features, we’ll need to install node, npm, and create-react-app. Feel free to skip this section if you already have it.

Nodejs and npm

Thank to Nodejs team, they finally made installers that you can use to install both nodejs and npm. Go to https://nodejs.org/en/download/ and download any of your. …


Image for post
Image for post

For a long time, JHipster used Spring for all the backend logic, once I started to work with Quarkus I always thought how it could be great to have a way to generate Quarkus project with Jhipster. And we finally have it!

In this article, I’ll show you how to generate a new JHipster Quarkus project with angular frontend and complex entity logic with relationships, pagination, and security in just a few minutes. I’ll also guide you through the project structure.

Installing Quarkus blueprint

First of all, we need to install Jhipster’s Quarkus blueprint, it can be done really easy with the next…


Image for post
Image for post

Every significant app will have security. And you probably opened this article because you’re looking for some simple yet durable solution. What can be simpler yet good enough as JWT Token authorization? Official Quarkus website already covered this topic, but I’ll show the most popular use-case for it, that is, generation of the token when the user logs in. I’ll show you a more abstract solution that you can plug-in to any app and generate a token with a single line of code in your /login method.

I also covered this topic at my Quarkus course in Security section. This articles basically repeats same lesson with additional…


Image for post
Image for post

Many services usually serve some web UI, whether it’s an admin tool, complete portal, or just a single HTML page. Vuejs is a perfect tool that can help you build single-page applications. Why not integrate it tightly with Quarkus?

This article covers:

  1. Setup node and dependencies required for Vuejs
  2. Init basic Vuejs project
  3. Configure Vuejs to serve from Quarkus
  4. Build and watch Vuejs project from maven
  5. Deploy minified Vuejs on maven package

Initial setup

Before we can init Vuejs project, we firstly need to install node, npm, vue-cli and probably something more. …


Image for post
Image for post

The App Engine is not a tool for “lazy” developers. It’s more than just an easy way to deploy your app. App Engine covers scaling, availability, logging and more.

For more then 4 years, I was super skeptical about such solutions, in my eyes they were “limiting” your architecture freedom. Few months ago, I realized how wrong I was. Let me show you small example that I had to scale once.

For better UX, please open this article on Quarkify.

Small history

I was involved in a small startup that operates globally. Let’s say they earn $10k per month, minus developers salary, minus costs of operation, minus small expenses we left with “can we please spend as little as possible on server expenses?”. …


Image for post
Image for post

GraphQL is both a language and a tool that can simplify your API and save some development hours to your project because you don’t need to create different endpoints for a single data structure. With Quarkus, it can be done really easily with vertx extension.

Let’s start with a simple example. You have a simple service that returns project teams and users for them. You’ll need:

  1. Create endpoint to get all teams + create an endpoint to get a single team
  2. Create an endpoint that will give you all users of a team.
  3. Alternatively, you can use ORM to return teams with users in them as a one large…


Image for post
Image for post

After this article, you’ll be able to write beautiful command-line tools for Quarkus with Picocli. This is the continuation of the first article about Quarkus mode, if you haven’t seen it, please read it first.

Now that you know how to use command mode, it’s time to prettify it! We gonna use Picocli, which makes cli tools fun to build.

Initial setup

First and foremost, let’s clone our previous project, you don’t need to do it if you already followed our previous article. …


Image for post
Image for post
Quarkus Command mode

In one of DevNation meetups, Max Andersen made a presentation of new Quarkus feature called Command mode, thanks to him I made this article.

Quarkus 1.4.0.CR1 brought to us a really interesting feature. In this article, you’ll see how you can manipulate your Quarkus app via the command line and start quarkus from main method. If you’ve ever used Laravel, for example, you know that it has really great support for the command line.

Quarkus Command mode gives you the ability to write an application(or part of it) that starts, does some work, and then exits.


Image for post
Image for post

There’s a time when you need to call some R script from Quarkus. One option is to create microservice, but what if it’s something really small and you just want to call it in a single place without overwhelming project architecture. This is where GraalVM comes in. With GraalVm you can execute R scripts directly from Java without any conversion, microservices, or endpoints. We already have seen an example in Python, let’s see how to do it in R.

Setting up the environment

We’ll think that you already installed GraalVM, if not, follow this link. …

About

Dmytro Chaban

Software Engineer, addicted to productivity and automatization

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store