Horext App API built using Spring Boot, Gradle, Java JDK 17, Exposed, and PostgreSQL.
Requirements to run the project:
Optional requirements:
- Copy .env.example to .env file via command below
cp .env.example .env
- Fill in the environment variables in the .env file
- Do you need to create the database and setup in .env
For Windows use:
gradlew
instead of./gradlew
Initialize the database by running the following command:
./gradlew flywayMigrate -i
For live reload, run the following command (recommended):
./gradlew compileKotlin --continuous --parallel --build-cache --configuration-cache
Next, run the following command to start the application:
./gradlew bootRun
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- GraalVM Native Image Support
- Spring Boot DevTools
- Spring Web
- JDBC API
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
- Accessing Relational Data using JDBC with Spring
- Managing Transactions
These additional references should also help you: