Prerequisites
Before you begin, ensure you have the following installed:- Java 17 or higher
- Maven 3.6+ (or use the included Maven wrapper)
- PostgreSQL (or H2 for development)
Database Configuration
The API supports both PostgreSQL for production and H2 for local development.The H2 console is available at
http://localhost:8080/h2-console when enabled.Application Properties
The application comes with default configuration values:application.properties
Configuration Parameters
The application name identifier
Default number of items returned per page when not specified
Maximum allowed page size to prevent excessive data retrieval
Installation Steps
Configure Database
Edit Create the database:
src/main/resources/application.properties with your database credentials:Build the Project
Use Maven to build the project and download dependencies:
The Maven wrapper (
./mvnw) is included in the project and doesn’t require a system-wide Maven installation.Environment Variables
You can override properties using environment variables:Development Mode
The project includes Spring Boot DevTools for automatic restarts during development:pom.xml
Next Steps
Authentication
Learn about user creation and security configuration
Pagination
Understand how to work with paginated endpoints