Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 797 Bytes

File metadata and controls

60 lines (44 loc) · 797 Bytes

Example WebApp

This is a simple boiler plate application to demonstrate how a JS frontend can be combined with a Java backend

Stack

Frontend

  • NPM (package manager)
  • Parcel (bundler)
  • Jest (testing framework)
  • Vue (framework)
  • Bootstrap

Backend

  • Java
  • Spring Boot
  • Junit

SDLC

  • Maven

Developing

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

Running

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

Testing

To run both frontend and backend tests:

mvn test