This is a simple boiler plate application to demonstrate how a JS frontend can be combined with a Java backend
Frontend
- NPM (package manager)
- Parcel (bundler)
- Jest (testing framework)
- Vue (framework)
- Bootstrap
Backend
- Java
- Spring Boot
- Junit
SDLC
- Maven
Run backend in IDE by launching
WebAppApplication.java
Run frontend in hot module reloading mode
First install dependencies:
npm start
This proxies /api calls to localhost:8080
To create a production JAR build:
mvn install
Build a docker image
docker build -t example/webapp .
Run docker container
docker run -d -p 8080:8080 example/webapp
To run both frontend and backend tests:
mvn test