Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zeabur/express-minio-example
A simple Express.js example for MinIO as storage service deployed on Zeabur.
https://github.com/zeabur/express-minio-example
cloud example express minio oss template zeabur
Last synced: about 2 months ago
JSON representation
A simple Express.js example for MinIO as storage service deployed on Zeabur.
- Host: GitHub
- URL: https://github.com/zeabur/express-minio-example
- Owner: zeabur
- Created: 2023-03-26T16:23:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-03T06:49:13.000Z (almost 2 years ago)
- Last Synced: 2023-08-21T14:18:49.716Z (over 1 year ago)
- Topics: cloud, example, express, minio, oss, template, zeabur
- Language: TypeScript
- Homepage:
- Size: 525 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Express.js MinIO Example
![](./screenshots/results.png)
![](./screenshots/img.png)
This example shows how to develop a simple Express.js application that uses MinIO as a storage backend.
You must first create a account on [Zeabur](https://zeabur.com), create a project and deploy a MinIO service from service marketplace.
## Getting Started
### Step 1
You can run the following command to generate a `.env` file, then fill in the required information.
> Note: You don't need to set these values in production, zeabur will set them for you
>
> these values are only required for local development```bash
cp .env.example .env
```### Step 2: Install Dependencies
```bash
pnpm install
```### Step 3: Run the app
```bash
pnpm dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can also check the following routes:
- [/upload](http://localhost:3000/upload): Upload a file (POST)
- [/objects](http://localhost:3000/objects): List all objects in the bucket (GET)
- [/objects/:objectName](http://localhost:3000/objects/:objectName): Get an object (GET)