Giter Site home page Giter Site logo

kameshsampath / jar-stack Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 4.0 253 KB

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

Java 17.33% HTML 21.50% Dockerfile 2.50% Makefile 2.41% JavaScript 5.58% TypeScript 43.02% Shell 0.48% CSS 7.18%
demo drone-ci google-cloud-run vercel-deployment

jar-stack's Introduction

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.

jar-stack's People

Contributors

kameshsampath avatar

Stargazers

Karthik Jeeyar avatar Arturs Krapans avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.