Skip to content

Basic solution for serving an Angular application by a JavaEE web application.

Notifications You must be signed in to change notification settings

pabloame/angularee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AngularEE

Basic repository where you can find an Angular application served by a JavaEE web application.

Purpose

The purpose of this repository is just to show a possible solution on how to serve an Angular application from a JavaEE web application in an automated way.

Prerequisites

  • Maven
  • NPM

Run Angular

You can just run Angular app as usual using:

cd frontend
ng serve

It will be deployed on port 4200.

Run Java EE application

You can just run JavaEE app as usual using Maven:

cd backend
mvn clean package

In targe you will get a war file.

Run JavaEE + Angular

In order to ship your Angular application inside your war file you just need to:

mvn clean package -Pangular+javaee

Deploy

You can use a compliance Java EE 8 web server to deploy or build a docker image as follow:

docker build . --tag angularee:1.0.0
docker run --rm -p 8080:8080 angularee:1.0.0

It will be accessible from http://localhost:8080/angularee/

About

Basic solution for serving an Angular application by a JavaEE web application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published