Gallerist is a Spring Boot backend API for gallery and automotive workflows. It provides user/role management, JWT-based authentication, gallery and vehicle inventory, customer and account/address data, and sales operations under a single API. The project ships with Swagger/OpenAPI for quick exploration and testing.
- JWT access + refresh token authentication
- Gallery, vehicle, and sales operations
- Customer, account, and address management
- Currency rates integration (TCMB EVDS)
- Swagger/OpenAPI documentation
Framework
- Spring Boot 3.5.6
- Spring Web
- Spring Security
- Spring Data JPA
- Spring Validation
- Spring Boot Actuator
3rd Party Dependencies
- JJWT (JWT tokens)
- MapStruct
- Lombok
- Springdoc OpenAPI
Database
- PostgreSQL
Language
- Java 25
Build Tool
- Maven (mvnw)
Container
- Docker / Docker Compose
- Java 25
- Maven (or
./mvnw) - PostgreSQL (for local runs)
- Docker (optional)
./mvnw spring-boot:runThe application runs on port 8080 by default.
docker compose up --buildThis also starts PostgreSQL.
The application is configured via environment variables. Default values:
DB_URL=jdbc:postgresql://localhost:5432/postgres
DB_USERNAME=postgres
DB_PASSWORD=1
DB_SCHEMA=gallerist
DDL_AUTO=update
SHOW_SQL=true
FORMAT_SQL=true
JWT_ISSUER_URI=http://localhost:8080/api
JWT_SECRET=13b0844b382c9ed040a15790abfb13d0
JWT_EXPIRATION=7200000
JWT_REFRESH_EXPIRATION=14400000When using Docker Compose, DB_PASSWORD and the Postgres port differ.
Auth
POST /api/auth/registerPOST /api/auth/loginPOST /api/auth/refreshToken
Domain
POST /api/save/accountPOST /api/save/addressPOST /api/save/customerPOST /api/save/galleristPOST /api/save/carPOST /api/save/galleristCarPOST /api/save/SaledCarGET /api/currency-rates?startDate=...&endDate=...
http://localhost:8080/swagger-ui/index.html
./mvnw test