From a3f41c70498c0b8b18d036ff789e3249042bdff8 Mon Sep 17 00:00:00 2001 From: darkdragon-001 Date: Mon, 18 May 2020 20:35:57 +0200 Subject: [PATCH] Improve browser README (#9628) - Add instructions to download node dependencies - Add instructions to allow development from IPs other than localhost --- browser/README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/browser/README.md b/browser/README.md index 09542ed0f..eb05d6b4a 100644 --- a/browser/README.md +++ b/browser/README.md @@ -11,6 +11,11 @@ exec -l $SHELL nvm install stable ``` +### Install node dependencies +```sh +npm install +``` + ### Install `go-bindata` and `go-bindata-assetfs` If you do not have a working Golang environment, please follow [Install Golang](https://golang.org/doc/install) @@ -71,3 +76,29 @@ npm run dev ``` Open [http://localhost:8888/minio/](http://localhost:8888/minio/) in your browser to play with the application + +### Run MinIO Browser with live reload on any IP + +Edit `browser/webpack.config.js` + +```diff +diff --git a/browser/webpack.config.js b/browser/webpack.config.js +index 8bdbba53..139f6049 100644 +--- a/browser/webpack.config.js ++++ b/browser/webpack.config.js +@@ -71,6 +71,7 @@ var exports = { + historyApiFallback: { + index: '/minio/' + }, ++ host: '0.0.0.0', + proxy: { + '/minio/webrpc': { + target: 'http://localhost:9000', + +``` + +```sh +npm run dev +``` + +Open [http://IP:8080/minio/](http://IP:8080/minio/) in your browser to play with the application