Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alukianov63/spring-files-storage

Example of file storage REST API, with local machine implementation and S3 bucket
https://github.com/alukianov63/spring-files-storage

file-server java postgresql rest-api s3-bucket spring-boot

Last synced: 27 days ago
JSON representation

Example of file storage REST API, with local machine implementation and S3 bucket

Awesome Lists containing this project

README

        

# Spring Boot files server

Example of file storage REST API, with local machine implementation and S3 bucket

## 🚧 Common setup

Clone the repo and install the dependencies.

```bash
git clone https://github.com/aLukianov63/spring-files-storage.git
```

## 🗃️ Requirements

* Spring Boot
* Spring WEB
* Spring Data JPA
* PostrgreSQL Driver
* AWS SDK For Java
* Apache Commons IO
* Lombok

## ⚗️ OpenAPI

Open Swagger ui page at `http://localhost:8080/swagger-ui/index.html`

![img.png](swagger.png)

## 🛠️ Configuration

```yaml
spring:
datasource:
url: jdbc:postgresql://:/
username:
password:
driver-class-name: org.postgresql.Driver
jpa:
hibernate:
ddl-auto: update
show-sql: false
properties:
hibernate:
format_sql: true
database: postgresql
database-platform: org.hibernate.dialect.PostgreSQLDialect
servlet:
multipart:
max-file-size: 20MB
max-request-size: 20MB

file-storage:
local:
directory:
s3:
endpoint:
region:
access-key:
secret-key:
bucket-name:
```

## 📝 License

Distributed under the MIT license. See `LICENSE` for more information.