feat: initial nutri-api — Spring Boot REST API for supplement catalog

- Supplement and Ingredient entities with UUID primary keys
- CRUD REST API with pagination, filtering, and full-text search
- Liquibase migrations with PostgreSQL tsvector full-text index
- SpringDoc OpenAPI documentation
- RFC 7807 Problem Details error handling
- Unit tests for service, mapper, and controller layers (23 tests)
- Dockerfile (multi-stage) and docker-compose.yaml for local dev
- Application profiles: default, dev, prod
This commit is contained in:
Backend Agent
2026-04-10 17:03:09 +00:00
commit 506d1ba761
32 changed files with 1625 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM eclipse-temurin:21-jdk-alpine AS build
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN apk add --no-cache maven && \
mvn clean package -DskipTests -q
FROM eclipse-temurin:21-jre-alpine
WORKDIR /app
COPY --from=build /app/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]