Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Gallerist Backend - Car Gallery Management API

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.

Features

  • JWT access + refresh token authentication
  • Gallery, vehicle, and sales operations
  • Customer, account, and address management
  • Currency rates integration (TCMB EVDS)
  • Swagger/OpenAPI documentation

Tech Stack

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

Getting Started

Prerequisites

  • Java 25
  • Maven (or ./mvnw)
  • PostgreSQL (for local runs)
  • Docker (optional)

Local Run

./mvnw spring-boot:run

The application runs on port 8080 by default.

Run with Docker Compose

docker compose up --build

This also starts PostgreSQL.

Configuration

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=14400000

When using Docker Compose, DB_PASSWORD and the Postgres port differ.

API Endpoints (Summary)

Auth

  • POST /api/auth/register
  • POST /api/auth/login
  • POST /api/auth/refreshToken

Domain

  • POST /api/save/account
  • POST /api/save/address
  • POST /api/save/customer
  • POST /api/save/gallerist
  • POST /api/save/car
  • POST /api/save/galleristCar
  • POST /api/save/SaledCar
  • GET /api/currency-rates?startDate=...&endDate=...

Swagger UI

http://localhost:8080/swagger-ui/index.html

Tests

./mvnw test

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages