Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

ckatzorke/spring-boot-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot SPA

A sample project how to use Spring Boot as your primary middleware serve, a.k.a. "backend for frontend". Spring Boot acts as

  • web server for static resources
    • handling '', '/', '/index'
    • handling all spa routes, return the index.html with Statuscode 200
    • handling of bundled resources (js, css, assets)
  • REST endpoint (or graphQL) - like handling '/api'
  • gateway to other REST services that should be integrated in a more tightly way (This should be mainly handled by sth like spring-cloud-router (Zuul)), this includes
    • handling sth like '/api/*
    • handling CORS
    • handling OAuth2 (bearer token)
    • potential model transformation

NOTE: it is not intended to replace an API gateway!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors