Skip to content

Monerh A#1

Closed
Miuroro wants to merge 4 commits into
HackYourFuture:mainfrom
Miuroro:main
Closed

Monerh A#1
Miuroro wants to merge 4 commits into
HackYourFuture:mainfrom
Miuroro:main

Conversation

@Miuroro

@Miuroro Miuroro commented Jul 1, 2026

Copy link
Copy Markdown

Description

I have finished all three tasks for this assignment. The app runs smoothly, the endpoints work in Postman.

Changes

📝 Task 1: Setup

  • Connected the Spring Boot app to my local PostgreSQL database.
  • Added the Amazon S3 SDK dependency to my pom.xml file.

🎨 Task 2: JSONB and Product Queries

  • Added the details field to the Product code so it shows up in requests.
  • Fixed the query to filter products by color.
  • Implemented the endpoint to update product sizes in the database.

📁 Task 3: Image Upload & Delete

  • Created FileService to handle uploading and deleting images.
  • Configured the S3 client to run with anonymous access so it doesn't crash on startup or trigger SonarQube errors (S6242).
  • Fixed the ProductController to accept file uploads properly.
  • Tested everything in Postman (uploading an image saves the URL to the DB, and deleting it sets it back to null).

Everything compiles and runs perfectly.

@Miuroro Miuroro closed this Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant