# backend **Repository Path**: MicroWearld/backend ## Basic Information - **Project Name**: backend - **Description**: Spring Boot Project - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-10 - **Last Updated**: 2024-10-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Getting Started ### Reference Documentation For further reference, please consider the following sections: * [Official Gradle documentation](https://docs.gradle.org) * [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/3.3.3/gradle-plugin) * [Create an OCI image](https://docs.spring.io/spring-boot/3.3.3/gradle-plugin/packaging-oci-image.html) * [GraalVM Native Image Support](https://docs.spring.io/spring-boot/3.3.3/reference/packaging/native-image/introducing-graalvm-native-images.html) * [Spring Data JPA](https://docs.spring.io/spring-boot/docs/3.3.3/reference/htmlsingle/index.html#data.sql.jpa-and-spring-data) * [Spring Boot DevTools](https://docs.spring.io/spring-boot/docs/3.3.3/reference/htmlsingle/index.html#using.devtools) * [JDBC API](https://docs.spring.io/spring-boot/docs/3.3.3/reference/htmlsingle/index.html#data.sql) * [MyBatis Framework](https://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/) * [Spring Web](https://docs.spring.io/spring-boot/docs/3.3.3/reference/htmlsingle/index.html#web) ### Guides The following guides illustrate how to use some features concretely: * [Accessing Data with JPA](https://spring.io/guides/gs/accessing-data-jpa/) * [Accessing Relational Data using JDBC with Spring](https://spring.io/guides/gs/relational-data-access/) * [Managing Transactions](https://spring.io/guides/gs/managing-transactions/) * [MyBatis Quick Start](https://github.com/mybatis/spring-boot-starter/wiki/Quick-Start) * [Accessing data with MySQL](https://spring.io/guides/gs/accessing-data-mysql/) * [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) * [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) * [Building REST services with Spring](https://spring.io/guides/tutorials/rest/) ### Additional Links These additional references should also help you: * [Gradle Build Scans – insights for your project's build](https://scans.gradle.com#gradle) * [Configure AOT settings in Build Plugin](https://docs.spring.io/spring-boot/3.3.3/how-to/aot.html) ## GraalVM Native Support This project has been configured to let you generate either a lightweight container or a native executable. It is also possible to run your tests in a native image. ### Lightweight Container with Cloud Native Buildpacks If you're already familiar with Spring Boot container images support, this is the easiest way to get started. Docker should be installed and configured on your machine prior to creating the image. To create the image, run the following goal: ``` $ ./gradlew bootBuildImage ``` Then, you can run the app like any other container: ``` $ docker run --rm -p 8080:8080 backend:0.0.1-SNAPSHOT ``` ### Executable with Native Build Tools Use this option if you want to explore more options such as running your tests in a native image. The GraalVM `native-image` compiler should be installed and configured on your machine. NOTE: GraalVM 22.3+ is required. To create the executable, run the following goal: ``` $ ./gradlew nativeCompile ``` Then, you can run the app as follows: ``` $ build/native/nativeCompile/backend ``` You can also run your existing tests suite in a native image. This is an efficient way to validate the compatibility of your application. To run your existing tests in a native image, run the following goal: ``` $ ./gradlew nativeTest ``` ### Gradle Toolchain support There are some limitations regarding Native Build Tools and Gradle toolchains. Native Build Tools disable toolchain support by default. Effectively, native image compilation is done with the JDK used to execute Gradle. You can read more about [toolchain support in the Native Build Tools here](https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html#configuration-toolchains).