A very minimal app to test the basic functionalities of MinIO with NodeJS.
Please excuse the minimal frontend, as it was a fast test project... ;)
- NodeJS
- Typescript
- Express
- Dotenv
- MinIO Javascript Library
- Multer
- Multer MinIO Storage Engine
- BodyParser
Configure the docker_minio_run.sh
to your needs:
- Create a mount point for the virtual volume, where the MinIO container will store its files.
- e.g.:
mkdir ~/minio
- e.g.:
- Change the mount point in the
docker_minio_run.sh
file.- e.g.: change the -v line to
/home/$USER/minio:/data
- e.g.: change the -v line to
- If needed, make the shell script executable:
sudo chmod -X ./docker_minio_run.sh
- Run the
docker_minio_run.sh
or the contained statement directly. Create Test Bucket in your MinIO Interface - Default Values:
- Type in your Browser
localhost:9001
and log in with the default credentials - Click on
Buckets
- Click
Create Bucket
and name it for exampletest
- Type in your Browser
- First rename the
sample.env
file simply to.env
. - Change the values you have adjusted in the docker run command accordingly in the .env file.
- e.g.: set the MinIO Bucket property to
test
:MINIO_BUCKET=test
- e.g.: set the MinIO Bucket property to
- Install Dependencies
npm install
- Run the app
- Test:
npm run dev
- Build:
npm run build
- Run Built Code:
npm run start
- Test: