{"id":31522657,"url":"https://github.com/anqorithm/spring-minio-s3","last_synced_at":"2026-04-20T09:34:22.662Z","repository":{"id":313962345,"uuid":"1053610399","full_name":"anqorithm/spring-minio-s3","owner":"anqorithm","description":"A simple Java Spring Boot application demonstrating file operations using the S3 API with a self-hosted MinIO server.","archived":false,"fork":false,"pushed_at":"2025-09-09T19:58:07.000Z","size":1004,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"trunk","last_synced_at":"2026-04-04T17:29:45.453Z","etag":null,"topics":["bucket","java","minio","object-storage","s3","s3-bucket","spring","spring-boot","storage"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anqorithm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-09T17:23:28.000Z","updated_at":"2025-12-23T16:49:28.000Z","dependencies_parsed_at":"2025-09-13T18:17:16.956Z","dependency_job_id":null,"html_url":"https://github.com/anqorithm/spring-minio-s3","commit_stats":null,"previous_names":["anqorithm/spring-minio-s3"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anqorithm/spring-minio-s3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anqorithm%2Fspring-minio-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anqorithm%2Fspring-minio-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anqorithm%2Fspring-minio-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anqorithm%2Fspring-minio-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anqorithm","download_url":"https://codeload.github.com/anqorithm/spring-minio-s3/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anqorithm%2Fspring-minio-s3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32041587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bucket","java","minio","object-storage","s3","s3-bucket","spring","spring-boot","storage"],"created_at":"2025-10-03T15:39:42.694Z","updated_at":"2026-04-20T09:34:22.655Z","avatar_url":"https://github.com/anqorithm.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot \u0026 MinIO S3\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Java](https://img.shields.io/badge/Java-17%2B-blue.svg)]()\n[![Spring Boot](https://img.shields.io/badge/Spring_Boot-3.5.5-green.svg)]()\n[![Google Style](https://img.shields.io/badge/style-google-blue.svg)](https://github.com/google/styleguide)\n[![Docker](https://img.shields.io/badge/Docker-blue.svg?logo=docker\u0026logoColor=white)](https://www.docker.com/)\n[![Docker Compose](https://img.shields.io/badge/Docker_Compose-blue.svg?logo=docker\u0026logoColor=white)](https://docs.docker.com/compose/)\n[![MinIO](https://img.shields.io/badge/MinIO-blue.svg?logo=minio\u0026logoColor=white)](https://min.io/)\n\nA simple Java Spring Boot application demonstrating file operations using the S3 API with a self-hosted MinIO server.\n\n## The Core Idea\n\nThe **S3 API** is the industry standard for object storage. While originally from AWS, its API is open and can be implemented by other services.\n\n**MinIO** is a popular open-source server that implements the S3 API. This allows you to develop applications using the well-known S3 protocol against a local, private storage instance, giving you a cloud-like development experience without depending on a cloud provider.\n\nThis project shows how a Java application can use a standard S3 client to perform file operations against a self-hosted MinIO server.\n\n## POC\n\n![Web Application UI](assets/1.png)\n*The main page of the web application, ready for file uploads.*\n\n![MinIO Console - Empty Bucket](assets/2.png)\n*The MinIO Object Browser showing the initial empty 'test-bucket'.*\n\n![File Upload](assets/3.png)\n*After uploading a file through the web interface.*\n\n![MinIO Console - With File](assets/4.png)\n*The MinIO console now shows the newly uploaded object in the bucket.*\n\n\n![API Usage via cURL](assets/6.png)\n*An example of interacting with the REST API using a cURL command.*\n\n## Getting Started\n\n### Prerequisites\n\n- Java 17+\n- Apache Maven 3.6+\n- Docker \u0026 Docker Compose\n\n### 1. Launch MinIO Server\n\nThis command starts a local, S3-compatible server.\n\n```bash\ndocker-compose up -d\n```\n\n- **MinIO Console:** `http://localhost:9001` (Credentials: `minioadmin` / `minioadmin`)\n- **S3 API Endpoint:** `http://localhost:9000`\n\n### 2. Run the Spring Boot Application\n\nThis command starts the Java application.\n\n```bash\nmvn spring-boot:run\n```\n\nThe application's web interface is now available at `http://localhost:8080`.\n\n## How It Works\n\nThe Spring Boot application is configured to communicate with the MinIO server.\n\n### Dependencies\n\nThis project uses the following dependencies for S3 integration:\n\n```xml\n\u003c!-- MinIO SDK for Java --\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.minio\u003c/groupId\u003e\n    \u003cartifactId\u003eminio\u003c/artifactId\u003e\n    \u003cversion\u003e8.5.7\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Configuration\n\nThe connection is defined in `src/main/resources/application.properties`:\n\n```properties\n# MinIO Server Configuration\nminio.endpoint=http://localhost:9000\nminio.access-key=minioadmin\nminio.secret-key=minioadmin\nminio.bucket-name=test-bucket\n```\n\n### API Endpoints\n\nThe application exposes a REST API to demonstrate the S3 operations:\n\n| Method | Endpoint                       | Description                               |\n|--------|--------------------------------|-------------------------------------------|\n| POST   | `/api/files/upload`            | Uploads a file.                           |\n| GET    | `/api/files/download/{fileName}` | Downloads a file.                         |\n| GET    | `/api/files/url/{fileName}`    | Generates a temporary link for a file.    |\n| DELETE | `/api/files/{fileName}`        | Deletes a file.                           |\n| GET    | `/api/files/list`              | Lists all files in the bucket.            |\n\n## Stopping the Environment\n\nTo shut down the MinIO server:\n\n```bash\ndocker-compose down\n```\n\nTo stop the server and delete all stored data:\n\n```bash\ndocker-compose down -v\n```\n\n## Resources\n\n- **[MinIO Documentation](https://min.io/docs/minio/linux/index.html)**: Official documentation for the MinIO server.\n- **[MinIO Java SDK Examples](https://github.com/minio/minio-java/tree/master/examples)**: Code examples for the Java client used in this project.\n- **[Spring Boot Documentation](https://spring.io/projects/spring-boot)**: Official documentation for the Spring Framework.\n- **[AWS S3 Documentation](https://aws.amazon.com/s3/getting-started/)**: Learn more about the concepts of the original S3 service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanqorithm%2Fspring-minio-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanqorithm%2Fspring-minio-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanqorithm%2Fspring-minio-s3/lists"}