Skip to content

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

Notifications You must be signed in to change notification settings

daggerok/spring-boot-nextjs-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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