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, create a project and deploy a MinIO service from service marketplace.
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
cp .env.example .env
pnpm install
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can also check the following routes:
- /upload: Upload a file (POST)
- /objects: List all objects in the bucket (GET)
- /objects/:objectName: Get an object (GET)