Example of how to load files (images) in node with simple adapter pattern.
- Clone the
.env.exampleto.env. - Create a
distfolder in the root of the project. - Change
FILESYSTEMvalue tolocal,miniodepending on what you want to test. - Serve the project with
docker-compose up.
- Prepare your project following get started.
- Run for the first time the project with
docker-compose up. - Go to
localhost:9001on a browser and enter withadmin123andadmin123. - Create a bucket with name
test. - Access to the bucket and change policy to public.
- Go to access key and create access key and secret, then put replace values of
MINIO_ACCESS_KEYandMINIO_SECRET_KEYat.env. - Go to object browser and create new path called
images. - Stop docker compose with
ctrl + c, and run again.
Access to http://localhost:3004to upload and list your files.