Skip to content

A simple Quarkus application that demonstrates how to build data-driven Java web apps in Azure App Service

License

Notifications You must be signed in to change notification settings

technofocus-pte/msdocs-quarkus-postgresql-sample-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

page_type languages products urlFragment name description
sample
azdeveloper
java
bicep
azure
azure-app-service
azure-database-postgresql
azure-virtual-network
msdocs-quarkus-postgresql-sample-app
Quarkus sample: Hibernate ORM with Panache and RESTEasy
This is a Quarkus web app using and the Azure Database for PostgreSQL flexible server.

Quarkus sample: Hibernate ORM with Panache and RESTEasy

This is a sample application that you can use to follow along with the tutorial Build a Quarkus web app with Azure App Service on Linux and PostgreSQL.

This sample is taken from Quarkus demo: Hibernate ORM with Panache and RESTEasy. For detailed information about how the sample application is created, check out the Quarkus guide.

Run the sample

  1. Fork this repository to your account. For instructions, see Fork a repo.

  2. From the repository root of your fork, select Code > Codespaces > +.

  3. In the codespace terminal, run the following command:

    mvn quarkus:dev
  4. When you see the message Your application running on port 8080 is available., click Open in Browser.

Note

Be sure to conserve your monthly allowance by deleting the codespace when you're done. To delete, visit https://github.com/codespaces and select ... > Delete next to the codespace.

Quick deploy

This project is designed to work well with the Azure Developer CLI, which makes it easier to develop apps locally, deploy them to Azure, and monitor them.

🎥 Watch a deployment of the code in this screencast.

Steps for deployment:

  1. Sign up for a free Azure account

  2. Install the Azure Dev CLI. (If you opened this repository in a Dev Container, it's already installed for you.)

  3. Log in to Azure.

    azd auth login
  4. Provision and deploy all the resources:

    azd up

    It will prompt you to create a deployment environment name, pick a subscription, and provide a location (like westeurope). Then it will provision the resources in your account and deploy the latest code. If you get an error with deployment, changing the location (like to "centralus") can help, as there may be availability constraints for some of the resources.

  5. When azd has finished deploying, you'll see an endpoint URI in the command output. Visit that URI, and you should see the CRUD app! 🎉 If you see an error, open the Azure Portal from the URL in the command output, navigate to the App Service, select Logstream, and check the logs for any errors.

  6. When you've made any changes to the app code, you can just run:

    azd deploy

Run locally

Take a look at the preconfigured dev container to see what you need for a dev environment.

Resources

About

A simple Quarkus application that demonstrates how to build data-driven Java web apps in Azure App Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Bicep 40.6%
  • Java 37.6%
  • HTML 18.6%
  • Dockerfile 3.2%