A full-stack web application template using Svelte for the frontend and Spring Boot for the backend.
yumey-svelte-spring-template/
โโโ App/ # Frontend Svelte application
โ โโโ src/ # Source files
โ โโโ static/ # Static assets
โ โโโ tests/ # Frontend tests
โ โโโ package.json # NPM dependencies
โ
โโโ Server/ # Backend Spring Boot application
โ โโโ src/
โ โ โโโ main/
โ โ โ โโโ kotlin/ # Kotlin source files
โ โ โ โโโ resources/ # Application resources
โ โ โโโ test/ # Backend tests
โ โโโ build.gradle.kts # Gradle build configuration
โ โโโ gradlew # Gradle wrapper script
โ
โโโ README.md # Project documentation
Navigate to the Server directory:
cd Server
Build the application:
./gradlew build
Navigate to the App directory:
cd App
Install dependencies:
npm install
cd Server
./gradlew bootRun
The Spring Boot server will start on http://localhost:8080
.
cd App
npm run dev
The Svelte application will be available at http://localhost:5173
.
cd Server
./gradlew test
cd App
npm run test
cd Server
./gradlew build
This will create a runnable JAR in the build/libs
directory.
cd App
npm run build
This creates optimized production assets in the build
directory.
The application uses Spring Security for authentication and authorization. The security configuration can be found in the SecurityConfig.kt
file.