From 7459f1d1addca461ee95e4b1833f493b3a360014 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 9 Jul 2018 17:01:15 -0400 Subject: [PATCH 1/2] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 347261d780..7d57f70d6a 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,21 @@ npm install npm run build:watch ``` -You can now access the web vault in your browser at `https://localhost:8080`. +You can now access the web vault in your browser at `https://localhost:8080`. You can adjust your API endpoint settings in `src/app/services/services.module.ts` by altering the `apiService.setUrls` call. For example: + +``` +await apiService.setUrls({ + base: isDev ? null : window.location.origin, + api: isDev ? 'http://mylocalapi' : null, + identity: isDev ? 'http://mylocalidentity' : null, +}); +``` + +If you want to run a production build of the web vault (pointed to the production API), run: + +``` +npm run build:prod:watch +``` # Contribute From e659fd12626fc0841f10a732a207e070665bbf62 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 9 Jul 2018 17:02:03 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d57f70d6a..f729ace6bc 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ npm run build:watch You can now access the web vault in your browser at `https://localhost:8080`. You can adjust your API endpoint settings in `src/app/services/services.module.ts` by altering the `apiService.setUrls` call. For example: -``` +```typescript await apiService.setUrls({ base: isDev ? null : window.location.origin, api: isDev ? 'http://mylocalapi' : null,