Angular Java Spring Example App
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
server
webClient
.gitignore
.travis.yml
Dockerfile
README.md
SpringAngular2.iml
angular2.iml
nbactions.xml
pom.xml

README.md

Build Status star this repo fork this repo

SpringAngular2TypeScript

This is an example of implementation of a 'Full Stack Web Application'. Please note that this code is very experimental and regularly modified.

You can find the running app (deployed via docker) here: http://angular.cafe

Information about the development of this example in the blog here: http://javaee.ch

Stack:

  • Spring Boot on the backend
  • AngularJS 2 on the frontend
  • TypeScript as frontend language
  • packaging optimized by webpack

Prerequisites:

  • install maven and npm

####For development (js server + java server):

  1. Package the java project or launch Application.java from your IDE
  • mvn clean package
  1. launch the backend spring boot application, it runs in localhost:8082
    • java -jar [PARENT_MODULE]/server/target/server-0.14-SNAPSHOT.war
  2. launch the webpack server for the frontend
    • cd [PARENT_MODULE]/webClient/src
    • npm start
  3. go on http://localhost:8080

#####For production (only one war, Javascript souces optimized):

  1. in the parent project directory execute
    • mvn clean package
  2. launch the backend spring boot application, it runs in localhost:8082
    • java -jar [PARENT_MODULE]/server/target/server-0.14-SNAPSHOT.war
  3. open your browser and visit http://localhost:8082