/spring-boot-nextjs-spa

Example of using Next.js as static site generator to be served with Spring Boot Web Thymeleaf

Primary LanguageKotlin

Spring Boot and Next.js tests

Example of using Next.js as static site generator to be served with Spring Boot Web Thymeleaf

Backend development

./mvnw clean compile spring-boot:run

Frontend development

./mvnw frontend:install-node-and-npm frontend:npm@npm-run-dev -Pdev

Serve static frontend

./mvnw clean frontend:install-node-and-npm frontend:npm@npm-run-export frontend:npx@npx-serve-out -Pserve

Test, build and run app

./mvnw ; java -jar target/*.jar
open http://127.0.0.1:8080

RTFM