
Building for your Full-stack App
Full-stack App using Next.js/React, Java, Spring Boot 3, Spring Data JPA/Hibernate, TypeScript & MySQL.
Introduction · One-click Deploy · Tech Stack + Features · Author
This Spring React Full-stacks Demo Generator by yiu
https://spring-react-one.vercel.app
git clone /~https://github.com/peter-yiu/spring-react
there are include two modules, one is base on Spring Boot3, and the other is base on next.js so let's start, and strong recommend to use IDEA
create your database use mysql
create tables from sql at backend/src/main/resources/sql/install.sql
Create file application-dev.properties
under backend/src/main/resources
Specify the active profile in application.properties
, use the spring.profiles.active property to specify the profile to activate.
spring.profiles.active=dev
application-dev.properties
is used by default when running a JUnit Test.
Define configurations in application-dev.properties: Add the configuration properties you want to use in the development environment to this file. For example:
# Database configuration
spring.datasource.url=jdbc:mysql://localhost:3306/mydatabase
spring.datasource.username=myusername
spring.datasource.password=mypassword
# Logging level configuration
logging.level.org.springframework=DEBUG
logging.level.com.example=TRACE
Run the BackendApplication
: Use your preferred method to run the Spring Boot application, such as running it from the IDE, using Maven or Gradle commands, or executing the JAR file.
The demo have been integrates Swagger, you can access the API documentation by navigating to the Swagger UI interface
For Example :
open http://localhost:7080/api-docs.html
for preview
https://soravideo.website/api-docs.html
install dependencies
cd frontend
pnpm install
put .env.local
under frontend
root dir with values list below
WEB_BASE_URI=""
NEXT_PUBLIC_BACKEND_BASE_URI="http://localhost:7080"
NEXT_PUBLIC_BACKEND_BASE_URI
is the backend application url
pnpm dev
open http://localhost:3000
for preview
- Next.js – React framework for building performant apps with the best developer experience
- Spring – Spring makes programming Java quicker, easier, and safer for everybody
- Vercel – Easily preview & deploy changes with git
- axios Promise based HTTP client for the browser and node.js
- Tailwind CSS – Utility-first CSS framework for rapid UI development
- Radix – Primitives like modal, popover, etc. to build a stellar user experience
- Framer Motion – Motion library for React to animate components with ease
- Lucide – Beautifully simple, pixel-perfect icons
- tailwindcss for page building
if this project is helpful to you, buy be a coffee.