You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.8 KiB

  1. # Minio File Browser
  2. ``Minio Browser`` provides minimal set of UI to manage buckets and objects on ``minio`` server. ``Minio Browser`` is written in javascript and released under [Apache 2.0 License](./LICENSE).
  3. ## Installation
  4. ### Install yarn
  5. ```sh
  6. curl -o- -L https://yarnpkg.com/install.sh | bash
  7. yarn
  8. ```
  9. ### Install `go-bindata` and `go-bindata-assetfs`
  10. If you do not have a working Golang environment, please follow [Install Golang](https://docs.minio.io/docs/how-to-install-golang)
  11. ```sh
  12. go get github.com/jteeuwen/go-bindata/...
  13. go get github.com/elazarl/go-bindata-assetfs/...
  14. ```
  15. ## Generating Assets
  16. ### Generate ui-assets.go
  17. ```sh
  18. yarn release
  19. ```
  20. This generates ui-assets.go in the current direcotry. Now do `make` in the parent directory to build the minio binary with the newly generated ``ui-assets.go``
  21. ### Run Minio Browser with live reload
  22. ```sh
  23. yarn dev
  24. ```
  25. Open [http://localhost:8080/minio/](http://localhost:8080/minio/) in your browser to play with the application
  26. ### Run Minio Browser with live reload on custom port
  27. Edit `browser/webpack.config.js`
  28. ```diff
  29. diff --git a/browser/webpack.config.js b/browser/webpack.config.js
  30. index 3ccdaba..9496c56 100644
  31. --- a/browser/webpack.config.js
  32. +++ b/browser/webpack.config.js
  33. @@ -58,6 +58,7 @@ var exports = {
  34. historyApiFallback: {
  35. index: '/minio/'
  36. },
  37. + port: 8888,
  38. proxy: {
  39. '/minio/webrpc': {
  40. target: 'http://localhost:9000',
  41. @@ -97,7 +98,7 @@ var exports = {
  42. if (process.env.NODE_ENV === 'dev') {
  43. exports.entry = [
  44. 'webpack/hot/dev-server',
  45. - 'webpack-dev-server/client?http://localhost:8080',
  46. + 'webpack-dev-server/client?http://localhost:8888',
  47. path.resolve(__dirname, 'app/index.js')
  48. ]
  49. }
  50. ```
  51. ```sh
  52. yarn dev
  53. ```
  54. Open [http://localhost:8888/minio/](http://localhost:8888/minio/) in your browser to play with the application