From ea011592a712ffe54180b00d7d9bb69ce885eef7 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Date: Mon, 3 May 2021 12:42:55 -0700 Subject: [PATCH 1/3] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20Connect=20Boun?= =?UTF-8?q?dary=20UI=20to=20Boundary=20local=20instance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add documentation on how to connect Boundary UI, admin and desktop version, to a Boundary local instance. --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README.md b/README.md index 71733826a..74ebea825 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ subproject, e.g. running or testing. - [Building Admin UI for Production](#building-admin-ui-for-production) - [Building with a Container](#building-with-a-container) - [Building Desktop UI for Production](#building-desktop-ui-for-production) + - [Connect Boundary UI to Boundary local instance](#connect-boundary-ui-to-boundary-local-instance) + - [For admin](#for-admin) + - [For desktop](#for-desktop) - [Committing](#committing) - [License Checking](#license-checking) @@ -122,6 +125,42 @@ environment variable to set signing certificate name (e.g Developer ID Applicati Assets are saved to `ui/desktop/electron-app/out/make/`. DMG packaged desktop UI is available at asset location as `boundary.dmg`. +### Connect Boundary UI to Boundary local instance + +This describes how to connect local Boundary UI to your local instance of Boundary. + +This assumes you already have up and running a boundary instance in your local environment with a listener `127.0.0.1:9200` (default behaviour). If you do not have it, please [follow Boundary documentation](https://github.com/hashicorp/boundary#build-and-start-boundary-in-dev-mode) for it. +#### For admin + +This assumes you are within `boundary-ui/ui/admin`. + +You will need to turn `off` mirage, tell the UI where to find Boundary and run it: `$ ENABLE_MIRAGE=false API_HOST=http://localhost:9200 yarn start`. + +Following terminal instructions, open in your browser: `http://localhost:4200/`. + +Once you open the UI you will see the login screen. + +By default, for development purposes, credentials are: +- Login name: `admin`. +- Password: `password` + +*Be aware these are default credentials, if you change them in Boundary, use the ones you set before* +#### For desktop + +This assumes you are within `boundary-ui/ui/desktop`. + +You will need to turn `off` mirage and run it: `$ ENABLE_MIRAGE=false yarn start:desktop`. + +You will see the login screen. + +Make sure the origin URL is pointing `http://localhost:9200`. + +By default, for development purposes, credentials are: +- Login name: `admin`. +- Password: `password` + +*Be aware these are default credentials, if you change them in Boundary, use the ones you set before* + ### Committing Instead of the default `git commit`, we prescribe a custom command that ensures From 67959d7a58d94d007a08269378625ab9881e8f4d Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Date: Mon, 3 May 2021 14:03:43 -0700 Subject: [PATCH 2/3] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20Update=20docs?= =?UTF-8?q?=20from=20PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update documentation with comments from team members on my initial PR. --- README.md | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 74ebea825..b99c33f52 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ DMG packaged desktop UI is available at asset location as `boundary.dmg`. This describes how to connect local Boundary UI to your local instance of Boundary. -This assumes you already have up and running a boundary instance in your local environment with a listener `127.0.0.1:9200` (default behaviour). If you do not have it, please [follow Boundary documentation](https://github.com/hashicorp/boundary#build-and-start-boundary-in-dev-mode) for it. +This assumes you already have up and running a Boundary dev instance in your local environment with a listener `127.0.0.1:9200` (default behaviour). [Learn how to start a local Boundary dev instance](https://learn.hashicorp.com/tutorials/boundary/getting-started-dev?in=boundary/getting-started#start-a-dev-environment). #### For admin This assumes you are within `boundary-ui/ui/admin`. @@ -138,28 +138,17 @@ You will need to turn `off` mirage, tell the UI where to find Boundary and run i Following terminal instructions, open in your browser: `http://localhost:4200/`. -Once you open the UI you will see the login screen. +Once you open the UI you will see the login screen, authenticate using generated admin login name and password. -By default, for development purposes, credentials are: -- Login name: `admin`. -- Password: `password` - -*Be aware these are default credentials, if you change them in Boundary, use the ones you set before* #### For desktop This assumes you are within `boundary-ui/ui/desktop`. You will need to turn `off` mirage and run it: `$ ENABLE_MIRAGE=false yarn start:desktop`. -You will see the login screen. +You will see the login screen, authenticate using generated admin login name and password. -Make sure the origin URL is pointing `http://localhost:9200`. - -By default, for development purposes, credentials are: -- Login name: `admin`. -- Password: `password` - -*Be aware these are default credentials, if you change them in Boundary, use the ones you set before* +Enter the origin of your Boundary dev instance, by default is: `http://localhost:9200`. ### Committing From 0bcb91ede0344d5a929c20783d64806a225d6010 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Date: Mon, 3 May 2021 14:13:52 -0700 Subject: [PATCH 3/3] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20Update=20docs?= =?UTF-8?q?=20for=20PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update documentation with suggestions from PR --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01f668d61..ac9bfe23a 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ This assumes you are within `boundary-ui/ui/desktop`. You will need to turn `off` mirage and run it: `$ ENABLE_MIRAGE=false yarn start:desktop`. -You will see the login screen, authenticate using generated admin login name and password. +In login screen, authenticate using generated admin login name and password. Enter the origin of your Boundary dev instance, by default is: `http://localhost:9200`.