GithubHelp home page GithubHelp logo

isabella232 / app-service-web-java-get-started Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/app-service-web-java-get-started

0.0 0.0 0.0 7.97 MB

This Java Coffee Shop app is used by the getting started content to demonstrate how easy it is to deploy a Java web app to Azure App Service.

License: MIT License

app-service-web-java-get-started's Introduction

services platforms author
app-service\web, app-service
java
cephalin

Java sample for Azure App Service - Coffee Shop

This is a Java coffee shop web app that you can deploy to Azure App Service. It uses the same WAR file as the Java Coffee Shop sample in the Azure Marketplace and demonstrates how Java apps are deployed to App Service.

To learn how to deploy this sample web app to App Service in a few minutes, go to Get started with web apps in Azure App Service.

The purpose of this sample is not to demonstrate best-practice deployment of a Java web app, but to show you the exact folder structure in App Service you should have when deploying a Java web app (see Folder structure). Keeping WAR files in a Git repository is not ideal. It is better to use FTP or [content synchronization with a cloud folder])(https://azure.microsoft.com/en-us/documentation/articles/app-service-deploy-content-sync/).

Serving Java apps in App Service

This sample uses the Tomcat server provided by App Service. You can serve Java web apps in a variety of ways: with a web server provided by App Service, with a custom server, or with a server embedded in your WAR/JAR.

### Folder structure

The main thing in the repo is a webapps folder with ROOT.war. The Tomcat/Jetty server in App Service will look inside this folder for web apps to host. ROOT.war represents the default web app (at the site root). Any WAR file that's otherwise named represents a web app accessbile at ~/<WARfilename>.

Also included in the repo is the Web.config file, that uses the httpPlatformHandler to tell IIS to be a proxy between HTTP requests and the Tomcat 8 server. You don't actually need this file if you enable Java for your app through the portal UI.

License

See LICENSE.

app-service-web-java-get-started's People

Contributors

acomsmpbot avatar bradygaster avatar cephalin 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.