Skip to content

A proof-of-concept for a Vue.js webapp with a springboot-backend, bundled into a single .war-file for production use.

Notifications You must be signed in to change notification settings

FBuervenich/vue-spring-tomcat-webapp-concept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue.js test webapp with Spring Boot backend

This is a proof-of-concept for a Vue.js webapp with a springboot-backend. Frontend and backend are bundled into the same .war for production to be deployed on a Tomcat or similar.

Frontend

Setup

cd Frontend
npm install

Compiles and hot-reloads for development

cd Frontend
npm run serve

Compiles and minifies for production

(Only required for deployment)

cd Frontend
npm run build

Customize configuration

See Configuration Reference.

Backend

The backend can be used like any normal Maven-App. Simply load it into Netbeans (or similar IDE) and run it from there.

API-Requests

API-Requests (requests from the frontend to the backend) can be performed as usual. The proxy built into the Dev-Server handles the connection.

Sample GET-Request to fetch all greeting-entities:

fetch("greetings");

Further Reading

See the following resources for further reading:

About

A proof-of-concept for a Vue.js webapp with a springboot-backend, bundled into a single .war-file for production use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published