Giter Site home page Giter Site logo

daggerok / spring-boot-nuxt-spa Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 11.0 590 KB

This repository contains simple example of using spring-boot 2.x + nuxt.js (vue / vuetify) SPA with not-found routes configured on backend and frontend.

License: MIT License

Vue 67.02% JavaScript 12.21% Java 20.77%
spring-boot spring-boot-2 gradle nuxt nuxtjs

spring-boot-nuxt-spa's Introduction

spring-boot-nuxt-spa Build Status

Key points here is:

  1. add org.springframework.boot:spring-boot-starter-thymeleaf dependency in build.gradle

  2. point templates configuration spring.thymeleaf.prefix=classpath:/public/ to public folder in src/main/resources/application.properties

  3. during SPA build copy result index.html as src/main/resources/public/error/4xx.html and src/main/resources/public/error/5xx.html to handle errors with frontend app

  4. in vue.js frontend app configure error layout in frontend/layouts/error.vue

links:

other links to read:

spring-boot-nuxt-spa's People

Contributors

daggerok avatar dependabot[bot] avatar dididy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spring-boot-nuxt-spa's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.