This is an example of implementation of a 'Full Stack Web Application'. Please note that this code is very experimental and continuosly modified.
- Spring Boot on the backend
- AngularJS 2 on the frontend
- TypeScript as frontend language
- packaging optimized by webpack
You can find some comments here: http://javaee.ch/2016/02/23/spring-boot-angularjs-2-typescript-hello-world-tutorial/
Prerequisites:
- install maven and npm
####For development (js server + java server):
- launch the backend spring boot application: ch.javaee.demo.angular2.Application, it runs in localhost:8082
- launch the webpack server for the frontend: npm start
- go on http://localhost:8080
#####For production (only one war, souces optimized):
- in the parent project directory execute 'mvn package'
- in the project server target directory execute 'java -jar server-0.1.3-SNAPSHOT.war'
- open your browser and visit http://localhost:8082