{"id":22547496,"url":"https://github.com/firmanjs/minio-demo","last_synced_at":"2025-04-09T17:07:30.663Z","repository":{"id":196306040,"uuid":"691493966","full_name":"firmanJS/minio-demo","owner":"firmanJS","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-26T11:29:56.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T17:07:18.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firmanJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-14T09:41:43.000Z","updated_at":"2024-06-24T16:08:35.000Z","dependencies_parsed_at":"2024-12-07T15:12:05.996Z","dependency_job_id":"0c57c14a-00e3-4996-a9ca-e1cbcfe120a3","html_url":"https://github.com/firmanJS/minio-demo","commit_stats":null,"previous_names":["firmanjs/minio-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fminio-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fminio-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fminio-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fminio-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firmanJS","download_url":"https://codeload.github.com/firmanJS/minio-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074977,"owners_count":21043490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T15:12:03.057Z","updated_at":"2025-04-09T17:07:30.640Z","avatar_url":"https://github.com/firmanJS.png","language":"JavaScript","readme":"## Minio Demo\n\nSimple minio demo using aws s3 style and package\n\n\n## How To Run\n```sh\n# copy environment variable\ncp .env.sample .env\n\n# build minio with docker compose\ndocker-compose -f minio.yml up --build\n```\n\n### Minio Setup\n\nAfter completing the Minio build, open it in the browser and log in to the Minio console.\nOpen with your favorite browser like Chrome or Mozilla\n\n* [Minio Console](http://localhost:9001)\n\nlogin with username and password your setup in env:\n```txt\nusername: minio // adjust it to the env you setup\npassword: minio1234 // adjust it to the env you setup\n```\n\n### Create New Bucket\n\nFollow steps below:\n\n1. Click `Bucket` tab and click create bucket button in right side :\n   * Name = `belajar`\n     \u003cimg width=\"1673\" alt=\"Screenshot 2023-09-23 at 08 21 18\" src=\"https://github.com/firmanJS/minio-demo/assets/5679509/7e0b4889-3660-4343-8b27-942c55be310c\"\u003e\n\u003cbr\u003e\u003cbr\u003e\n2. Toogle versioning info you want versioning the bucket\n\u003cimg width=\"888\" alt=\"Screenshot 2023-09-23 at 08 19 49\" src=\"https://github.com/firmanJS/minio-demo/assets/5679509/c4be596e-a7a9-44b6-877d-00f0f49bcd84\"\u003e\n\u003cbr\u003e\u003cbr\u003e\n3. Create bucket tab then click bucket which was made earlier\n\u003cimg width=\"1420\" alt=\"Screenshot 2023-09-23 at 08 21 46\" src=\"https://github.com/firmanJS/minio-demo/assets/5679509/7da8daf2-7f72-4557-8013-bdcf4c5eebbd\"\u003e\n\u003cbr\u003e\u003cbr\u003e\n4. Set Bucket Access policy, click the bucket name `belajar` in summary tab set access policy set the public for example case\n\u003cimg width=\"1420\" alt=\"Screenshot 2023-09-23 at 08 22 00\" src=\"https://github.com/firmanJS/minio-demo/assets/5679509/f1e29808-bb53-47cf-a93f-d521c7e933a0\"\u003e\n\n### Create Access Keys\n\nFollow steps below:\n\n1. Click on `Access Keys` in the left menu for create an access key to your bucket storage then click  `Create access key` button.\n\u003cimg width=\"1663\" alt=\"Screenshot 2023-09-23 at 08 22 30\" src=\"https://github.com/firmanJS/minio-demo/assets/5679509/15e66bf7-1b4a-4934-aa42-89ff0aaeef9a\"\u003e\n\u003cbr\u003e\u003cbr\u003e\n2. You will see that the default Access key and Secret key are generated then click created\n\u003cimg width=\"1417\" alt=\"Screenshot 2023-09-23 at 08 22 43\" src=\"https://github.com/firmanJS/minio-demo/assets/5679509/f2439194-3c74-48e6-a01b-c0f7e3892238\"\u003e\n\u003cbr\u003e\u003cbr\u003e\n3. You will copy Access key and Secret key or download for backup, if your forgotten\n\u003cimg width=\"1415\" alt=\"Screenshot 2023-09-23 at 08 23 05\" src=\"https://github.com/firmanJS/minio-demo/assets/5679509/dc949aa4-c8df-4e78-9c07-d51851fbaa18\"\u003e\ndont forget fill the env\n```sh\nAWS_ACCESS=\nAWS_SECRET=\n```\n\u003cbr\u003e\u003cbr\u003e\n4. After created go back to list and click detail\n\u003cimg width=\"1405\" alt=\"Screenshot 2023-09-23 at 08 42 47\" src=\"https://github.com/firmanJS/minio-demo/assets/5679509/22346e14-1e0d-4052-b159-b616fc9c3bb7\"\u003e\n\u003cbr\u003e\u003cbr\u003e\n5. And add rule like this you can copy in file policy.example.json, dont forget rename to your bucket definition\n\u003cimg width=\"1421\" alt=\"Screenshot 2023-09-23 at 08 43 16\" src=\"https://github.com/firmanJS/minio-demo/assets/5679509/bdd3baf3-b662-4421-90c4-f9b9d767b166\"\u003e\n\n\nNow you have successfully finished the minio configuration. You can do testing using postman at this URL\n```bash\n# via postman\n[POST] http://localhost:1000/save-to-minio \nbody form data image\n\n# via curl\ncurl --location 'http://localhost:1000/save-to-minio' \\\n--form 'image=@\"/path\"'\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirmanjs%2Fminio-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirmanjs%2Fminio-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirmanjs%2Fminio-demo/lists"}