https://github.com/tx7do/minio-typescript-example
https://github.com/tx7do/minio-typescript-example
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tx7do/minio-typescript-example
- Owner: tx7do
- License: mit
- Created: 2022-03-29T03:27:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-04T09:10:10.000Z (over 1 year ago)
- Last Synced: 2025-03-30T02:33:34.663Z (about 1 year ago)
- Language: TypeScript
- Size: 451 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TypeScript前端上传文件到MinIO实例
* 后端使用Golang+gin开发,主要是调用MinIO的presignedPutObject接口获取临时上传连接
* 前端有React和Vue3的实现
## 本地Docker部署测试服务器
```bash
docker pull bitnami/minio:latest
# MINIO_ROOT_USER最少3个字符
# MINIO_ROOT_PASSWORD最少8个字符
# 第一次运行的时候,服务会自动关闭,手动再次启动就可以正常运行了.
docker run -itd \
--name minio-server \
-p 9000:9000 \
-p 9001:9001 \
--env MINIO_ROOT_USER="root" \
--env MINIO_ROOT_PASSWORD="123456789" \
--env MINIO_DEFAULT_BUCKETS='images' \
--env MINIO_FORCE_NEW_KEYS="yes" \
--env BITNAMI_DEBUG=true \
bitnami/minio:latest
```