/generator-jhipster-azure-container-apps

jHipster generator for Azure Container Apps

Primary LanguageBicepMIT LicenseMIT

JHipster Azure Container Apps


NPM version

Introduction

JHipster Azure Container Apps enables developers to rapidly create and deploy full-stack Java applications on Azure Container Apps with minimal steps. This integration simplifies the deployment process, allowing seamless scalability and management for both frontend, backend and database services on Azure.

Prerequisites

As this is a JHipster blueprint, we expect you have JHipster basic knowledge:

The following prerequisites arer equired to run this application locally. Please ensure that you have them all installed locally.

The following prerequisites arer equired to deploy this application to Azure.

🚀 Get Started

npm install -g generator-jhipster-azure-container-apps

🚁 How to run locally

To use JHipster Azure Container Apps, run the below command

jhipster-azure-container-apps

You can look for updated azure-container-apps blueprint specific options by running

jhipster-azure-container-apps app --help

To run locally:

  • For back-end, you can build manually under src/api with:
mvn clean package -DskipTests
java -jar target/{artifactname}-0.0.1-SNAPSHOT.jar
  • The back-end can be accessed at:
http://localhost:3100/
  • For front-end, you can build manually under src/web with:
npm install
npm run dev
  • The front-end can be accessed at:
http://localhost:3000/

🎉 How to deploy on Azure for free

  1. Log in to azd. Only required once per-install.
    azd auth login
  2. Navigate to the generated project directory and run
    azd up
    Make sure your docker is running when executing this.

After the command is executed, you can see the following log signs that the deployment was successful.

SUCCESS: Your up workflow to provision and deploy to Azure completed in <deployment-time>.

The output Deploying service api and Deploying service web are the endpoints to access the todo application.

❤️ Next Steps

Azure Container Apps has built-in Java support to enhance your Java applications with automatic memory fitting, diagnostics and managed spring componnets, learn more. You can easily turn on the Java support feature by clicking on the manage of the Development stack and choose Java on your overview page. Java Stack.