Skip to content

A Demo Quarkus Java Application and React UI (JAR Stack) that uses Drone pipelines to build deploy applications to various platforms like Google Cloud, Vercel, Kubernetes etc.,

License

Notifications You must be signed in to change notification settings

kameshsampath/jar-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java And Reactive(JAR) Stack

A Drone pipeline JAR(Java And Reactive) stack to show build, test and deploy a Java API with React Frontend with optional DB.

The stack has the following components,

  • A Quarkus based Java REST API with optional persistence using Hibernate
  • An React based UI application

Pre-requisites

API Access

Make Service publicly accessible

As the API is not enabled with authentication by default to quickly test the application try allowing allUsers to access the API,

gcloud run services add-iam-policy-binding fruits-api \
  --region="${GCP_REGION}" \
  --member="allUsers" \
  --role="roles/run.invoker"

Disable Public Access to API

To switch back to authentication mode use the following command,

gcloud run services remove-iam-policy-binding fruits-api --member='allUsers' --role='roles/run.invoker' --region="${GCP_REGION}"

Build and Deploy Application

Create the secret file

cp secret.example my.secret

Edit the my.secret and update the value to suit your environment and settings.

drone exec --secret=my.secret .drone.yml

The Drone pipeline command will now start to build the Java Application, push the built application to image registry (Google Container Registry), Deploy the container image as Google Cloud Run service and finally push the UI application Vercel.

About

A Demo Quarkus Java Application and React UI (JAR Stack) that uses Drone pipelines to build deploy applications to various platforms like Google Cloud, Vercel, Kubernetes etc.,

Topics

Resources

License

Stars

Watchers

Forks