From a35cab02a925a802086a1999727a41af2da282c8 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 10:03:25 -0600 Subject: [PATCH 01/23] instructions for `batch-geocoder-node` and `attachments-node` --- README.md | 25 +++++++++++++++++++++++++ samples/attachments-node/README.md | 16 ++++++++++++++-- samples/attachments-node/package.json | 1 + samples/batch-geocoder-node/README.md | 16 ++++++++++++++-- 4 files changed, 54 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 677372e..25b8880 100644 --- a/README.md +++ b/README.md @@ -1 +1,26 @@ # ArcGIS REST JS Samples + +## Local ArcGIS REST JS + +If you'd like to use a local version of ArcGIS REST JS while running one of the samples, follow these steps. + +1. In the ArcGIS REST JS directory, run these commands: + + ```bash + npm install + npm run build + ``` + +1. In this sample's directory, run these commands, + + 1. Replacing `..\..\path\to` with the path to where you have ArcGIS REST JS stored, and + 2. Using the associated package folder(s) that are being used by the current sample (e.g. `packages\arcgis-rest-feature-service`, `packages\arcgis-rest-geocoding`, etc.) + + ```bash + npm install + npm link ..\..\path\to\arcgis-rest-js\packages\arcgis-rest-feature-service\ + ``` + +Remember that you must run `npm run build` in the ArcGIS REST JS repository after making changes to see those changes when running the sample. + +To remove the link and use the package from NPM instead of the local one, run `npm install` in the sample folder again. diff --git a/samples/attachments-node/README.md b/samples/attachments-node/README.md index 9198b0e..2dc57fd 100644 --- a/samples/attachments-node/README.md +++ b/samples/attachments-node/README.md @@ -1,4 +1,16 @@ # Native JavaScript Modules in Node.js -1. Run `npm run build` in the root directory -1. Run `npm start` to make a require and log output. +## Running this demo + +First run `npm install` to install the dependencies. + +### Local ArcGIS REST JS + +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js), referencing these packages that this sample uses as necessary: + +- `arcgis-rest-request` +- `arcgis-rest-feature-service` + +### Other Steps + +Run `npm start` to make a require and log output. diff --git a/samples/attachments-node/package.json b/samples/attachments-node/package.json index fc005ee..dc15d22 100644 --- a/samples/attachments-node/package.json +++ b/samples/attachments-node/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@esri/arcgis-rest-request": "^4.0.0", + "@esri/arcgis-rest-feature-service": "^4.0.0", "fetch-blob": "^3.1.2", "mime": "^2.5.2", "mime-types": "^2.1.32" diff --git a/samples/batch-geocoder-node/README.md b/samples/batch-geocoder-node/README.md index bd18a71..5a60124 100644 --- a/samples/batch-geocoder-node/README.md +++ b/samples/batch-geocoder-node/README.md @@ -1,6 +1,18 @@ -# Running this demo +# Batch Geocoder (Node) + +## Running this demo + +First run `npm install` to install the dependencies. + +### Local ArcGIS REST JS + +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js), referencing these packages that this sample uses as necessary: + +- `arcgis-rest-request` +- `arcgis-rest-geocoding` + +### Other Steps -1. Make sure you run `npm run build` in the root folder to setup the dependencies 2. Create and register a [new application](https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/accessing-arcgis-online-services/). 3. Replace values in [config-template.js](/demos/batch-geocoder-node/config-template.js) and rename to `config.js` 1. `"clientId"`: ArcGIS ClientId From 0443dfc1aeb1d5b35686d14c4d69a5b16cd9f485 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 10:33:44 -0600 Subject: [PATCH 02/23] fix example ID --- samples/attachments-browser/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/attachments-browser/index.html b/samples/attachments-browser/index.html index 382b833..93f88ba 100644 --- a/samples/attachments-browser/index.html +++ b/samples/attachments-browser/index.html @@ -15,7 +15,7 @@

Attachments

- +
From 5870941b0b221be3bbaac887b908b1ab5caa5730 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 10:34:07 -0600 Subject: [PATCH 03/23] move script to --- samples/attachments-browser/index.html | 15 +++++++++------ samples/attachments-browser/package.json | 15 --------------- 2 files changed, 9 insertions(+), 21 deletions(-) delete mode 100644 samples/attachments-browser/package.json diff --git a/samples/attachments-browser/index.html b/samples/attachments-browser/index.html index 93f88ba..f71f3ba 100644 --- a/samples/attachments-browser/index.html +++ b/samples/attachments-browser/index.html @@ -1,8 +1,15 @@ -Attachments + - + Attachments + + + + + + +
@@ -53,10 +60,6 @@

Attachments

- - - - + ``` + + ... to this: + + ```html + + ``` diff --git a/samples/attachments-browser/README.md b/samples/attachments-browser/README.md index 1670b1f..ca2b8bc 100644 --- a/samples/attachments-browser/README.md +++ b/samples/attachments-browser/README.md @@ -1,7 +1,13 @@ # Running this demo -1. Make sure you run `npm run build` in the root folder to setup the dependencies -1. `npm start` -1. Visit http://localhost:8080 +This sample is fully in the browser. You do not need to install any dependencies - it uses ArcGIS REST JS from the Unpkg CDN. To run this sample, you just need to host the `index.html` file. There are a variety of ways to do that; one simple way is to use the [serve](https://www.npmjs.com/package/serve) package: -**Note:** The server starts with a special configuration to serve URLs starting with `@esri/arcgis-rest-*` from their respective packages. In your application you will need to change these URLs to point to their respective locations. +```bash +npx serve +``` + +## Local ArcGIS REST JS + +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js-browser), updating the script tags in these files as necessary: + +- `index.html` diff --git a/samples/attachments-node/README.md b/samples/attachments-node/README.md index 2dc57fd..a1f25e6 100644 --- a/samples/attachments-node/README.md +++ b/samples/attachments-node/README.md @@ -6,7 +6,7 @@ First run `npm install` to install the dependencies. ### Local ArcGIS REST JS -If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js), referencing these packages that this sample uses as necessary: +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js-npm), referencing these packages that this sample uses as necessary: - `arcgis-rest-request` - `arcgis-rest-feature-service` diff --git a/samples/batch-geocoder-node/README.md b/samples/batch-geocoder-node/README.md index 5a60124..e739974 100644 --- a/samples/batch-geocoder-node/README.md +++ b/samples/batch-geocoder-node/README.md @@ -6,7 +6,7 @@ First run `npm install` to install the dependencies. ### Local ArcGIS REST JS -If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js), referencing these packages that this sample uses as necessary: +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js-npm), referencing these packages that this sample uses as necessary: - `arcgis-rest-request` - `arcgis-rest-geocoding` From 6c77968904eb360508d7e13665b428efd1796998 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 12:33:33 -0600 Subject: [PATCH 05/23] readme title --- samples/attachments-browser/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/samples/attachments-browser/README.md b/samples/attachments-browser/README.md index ca2b8bc..558c811 100644 --- a/samples/attachments-browser/README.md +++ b/samples/attachments-browser/README.md @@ -1,12 +1,14 @@ -# Running this demo +# Attachments Browser -This sample is fully in the browser. You do not need to install any dependencies - it uses ArcGIS REST JS from the Unpkg CDN. To run this sample, you just need to host the `index.html` file. There are a variety of ways to do that; one simple way is to use the [serve](https://www.npmjs.com/package/serve) package: +## Running this demo + +For this sample, you do not need to install any dependencies - it uses ArcGIS REST JS from the Unpkg CDN. To run this sample, you just need to host the `index.html` file. There are a variety of ways to do that; one simple way is to use the [serve](https://www.npmjs.com/package/serve) package: ```bash npx serve ``` -## Local ArcGIS REST JS +### Local ArcGIS REST JS If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js-browser), updating the script tags in these files as necessary: From fa87e6489405fab70d626b964c430d0101a00d99 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 12:35:39 -0600 Subject: [PATCH 06/23] instructions - browser-es-modules --- samples/browser-es-modules/README.md | 16 ++++-- samples/browser-es-modules/index.html | 76 +++++++++++++------------ samples/browser-es-modules/package.json | 15 ----- 3 files changed, 52 insertions(+), 55 deletions(-) delete mode 100644 samples/browser-es-modules/package.json diff --git a/samples/browser-es-modules/README.md b/samples/browser-es-modules/README.md index 2af95b1..8df3e8a 100644 --- a/samples/browser-es-modules/README.md +++ b/samples/browser-es-modules/README.md @@ -1,7 +1,15 @@ # ArcGIS REST JS + Native Browser Modules -1. Run `npm run build` in the root directory -1. Run `npm start` to spin up the development server. -1. Visit [http://localhost:8080](http://localhost:8080). +## Running this demo -**Note:** The server starts with a special configuration to serve URLs starting with `@esri/arcgis-rest-*` from their respective packages. In your application you will need to change these URLs to point to their respective locations. +For this sample, you do not need to install any dependencies - it uses ArcGIS REST JS from the Unpkg CDN. To run this sample, you just need to host the `index.html` file. There are a variety of ways to do that; one simple way is to use the [serve](https://www.npmjs.com/package/serve) package: + +```bash +npx serve +``` + +### Local ArcGIS REST JS + +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js-browser), updating the script tags in these files as necessary: + +- `index.html` diff --git a/samples/browser-es-modules/index.html b/samples/browser-es-modules/index.html index 941101d..bffd6a8 100644 --- a/samples/browser-es-modules/index.html +++ b/samples/browser-es-modules/index.html @@ -1,38 +1,42 @@ - - - - ArcGIS REST JS Browser w/ Modules - - - - - - - - - - - - - - - \ No newline at end of file + + + ArcGIS REST JS Browser w/ Modules + + + + + + + + + + + + + diff --git a/samples/browser-es-modules/package.json b/samples/browser-es-modules/package.json deleted file mode 100644 index b25e79f..0000000 --- a/samples/browser-es-modules/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "private": true, - "name": "@esri/arcgis-rest-demo-browser-es-modules", - "version": "3.3.0", - "description": "Vanilla JavaScript demo of @esri/arcgis-rest-* packages", - "license": "Apache-2.0", - "scripts": { - "start": "node ../../scripts/run-demo-server.js" - }, - "dependencies": { - "@esri/arcgis-rest-portal": "^4.0.0", - "@esri/arcgis-rest-request": "^4.0.0" - }, - "author": "" -} From 8214cbde8bf5e485c6079f8a23f730b10b16a86f Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 13:07:31 -0600 Subject: [PATCH 07/23] instructions for deno sample --- samples/deno/README.md | 30 +++++++++++++++++++++++++++--- samples/deno/import_map.json | 16 ++++++++-------- 2 files changed, 35 insertions(+), 11 deletions(-) diff --git a/samples/deno/README.md b/samples/deno/README.md index 9772c97..a90052b 100644 --- a/samples/deno/README.md +++ b/samples/deno/README.md @@ -1,9 +1,33 @@ # ArcGIS REST JS + Deno -ArcGIS REST JS is fully compatible with Deno. You can import the packages from the [esm.run CDN](https://www.jsdelivr.com/esm) for the easiest use. This demo shows importing from a local install with an import map. +## Running this demo -You can run this demo with: +ArcGIS REST JS is fully compatible with Deno. You can run this demo with: ``` -deno run --allow-net --import-map ./import_map.json index.js +deno run --allow-net --allow-import --import-map ./import_map.json index.js +``` + +### Local ArcGIS REST JS + +If you'd like to use a local version of ArcGIS REST JS, follow these steps. + +1. In the ArcGIS REST JS directory, run these commands. This will run a local server hosting ArcGIS REST JS. + +```bash +npm install +npm run build +node .\scripts\run-demo-server.js +``` + +2. In this sample's directory, update `import_map.json` with relative paths to the files on your computer. For example replace this: + +```json +"https://esm.run/@esri/arcgis-rest-form-data/browser-ponyfill.mjs" +``` + +... with this: + +```json +"../../path/to/arcgis-rest-js/packages/arcgis-rest-form-data/browser-ponyfill.mjs" ``` diff --git a/samples/deno/import_map.json b/samples/deno/import_map.json index f667e41..96d8dd1 100644 --- a/samples/deno/import_map.json +++ b/samples/deno/import_map.json @@ -1,8 +1,8 @@ - { - "imports": { - "@esri/arcgis-rest-form-data": "../../packages/arcgis-rest-form-data/browser-ponyfill.mjs", - "@esri/arcgis-rest-fetch": "../../packages/arcgis-rest-fetch/browser-ponyfill.mjs", - "@esri/arcgis-rest-request": "../../packages/arcgis-rest-request/dist/esm/index.js", - "@esri/arcgis-rest-portal": "../../packages/arcgis-rest-portal/dist/esm/index.js" - } - } \ No newline at end of file +{ + "imports": { + "@esri/arcgis-rest-form-data": "https://esm.run/@esri/arcgis-rest-form-data/browser-ponyfill.mjs", + "@esri/arcgis-rest-fetch": "https://esm.run/@esri/arcgis-rest-fetch/browser-ponyfill.mjs", + "@esri/arcgis-rest-request": "https://esm.run/@esri/arcgis-rest-request/dist/esm/index.js", + "@esri/arcgis-rest-portal": "https://esm.run/@esri/arcgis-rest-portal/dist/esm/index.js" + } +} From 494ec6c97cbe65642b0f5bfba0d0690fcd4db861 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 13:20:57 -0600 Subject: [PATCH 08/23] instructions for `dev-credentials-client` --- samples/dev-credentials-client/README.md | 36 +++++++++--------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/samples/dev-credentials-client/README.md b/samples/dev-credentials-client/README.md index c45e335..ddf1e7c 100644 --- a/samples/dev-credentials-client/README.md +++ b/samples/dev-credentials-client/README.md @@ -2,33 +2,25 @@ This page will show API key and OAuth 2.0 app CRUD demo with help of `arcgis-rest-developer-credentials` package. First step requires a user to log in -via [Authenticate with an ArcGIS identity](https://developers.arcgis.com/arcgis-rest-js/authentication/tutorials/authenticate-with-an-arcgis-identity-rest-js-browser/). +via [Authenticate with an ArcGIS identity](https://developers.arcgis.com/arcgis-rest-js/authentication/tutorials/sign-in-with-user-authentication-browser/). Then you can use the form to create an API key or switch to the OAuth 2.0 form to create an OAuth 2.0 app. Once you've created an API key or OAuth 2.0 app, you can click on the item in the table below the form to edit it. ## Running this demo -1. Run `npm run build` in the repository's root directory. -2. Go into `demos/dev-credentials-client` and run `npm start` to spin up the development server. -3. Visit [http://localhost:8080](http://localhost:8080). +First run `npm install` to install the dependencies. + +### Local ArcGIS REST JS + +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js-npm), referencing these packages that this sample uses as necessary: + +- `arcgis-rest-request` +- `arcgis-rest-developer-credentials` ## Additional tools used - - - - - - - - - - - - - - - - - -
DescriptionTool
Enhanced Multi-SelectSelect2
TablejQuery Data Table
OthersjQuery 3, Bootstrap 5
\ No newline at end of file +| Description | Tool | +| --------------------- | ------------------------------------------- | +| Enhanced Multi-Select | [Select2](https://select2.org) | +| Table | [jQuery Data Table](https://datatables.net) | +| Others | jQuery 3, Bootstrap 5 | From 0d739c0aa4b2544e72f572f5af458dd09887976c Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 13:38:58 -0600 Subject: [PATCH 09/23] express instructions --- samples/express/README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/samples/express/README.md b/samples/express/README.md index 2c484d7..0a22465 100644 --- a/samples/express/README.md +++ b/samples/express/README.md @@ -1,16 +1,20 @@ # ArcGIS REST JS Express Demo -This demo explains how to trigger OAuth 2.0 via custom server-side code +This sample shows how to trigger OAuth 2.0 via custom server-side code. -## Setup +## Running this demo -1. Make sure you run `npm run build` in the root folder to setup the dependencies -2. Create a new application on https://developers.arcgis.com +1. In this sample's directory, run `npm install` to install the dependencies. +2. Create a new application on (New Item > Developer Credentials > OAuth 2.0 credentials). 3. Add `http://localhost:3000/authenticate` as a redirect uri for your application. -4. Copy the `config.json.template` file, rename it to `config.json` -5. Copy your application's client id into your new `config.json` file. +4. Copy the `config.json.template` file, rename it to `config.json`. +5. Copy your application's client ID into your new `config.json` file. +6. In the terminal, run `npm start`. +7. Visit to start the OAuth 2.0 process. -## Running the demo +### Local ArcGIS REST JS -6. `npm start` -7. Visit http://localhost:3000/authorize to start the OAuth 2.0 process. +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js-npm), referencing these packages that this sample uses as necessary: + +- `arcgis-rest-request` +- `arcgis-rest-developer-credentials` From a020239a9ddd94b026d628de3514dfb30d95f8df Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 13:51:40 -0600 Subject: [PATCH 10/23] instructions --- samples/express-oauth-advanced/README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/samples/express-oauth-advanced/README.md b/samples/express-oauth-advanced/README.md index 1c7a161..1fdc6ee 100644 --- a/samples/express-oauth-advanced/README.md +++ b/samples/express-oauth-advanced/README.md @@ -21,22 +21,28 @@ Using long lived sessions on the server also means that the server can perform b These instructions are for setting up the demo using credentials setup by the ArcGIS REST JS team. -1. Make sure you run `npm run build` in the root folder to setup the dependencies +1. In this sample's directory, run `npm install` to install the dependencies. 1. Copy `.env.template` to `.env` 1. Run `npm run start` -1. Visit http://localhost:3000 to start. +1. Visit to start. ## Setup with your own credentials These instructions are for setting up the demo using credentials setup by the ArcGIS REST JS team. -1. Make sure you run `npm run build` in the root folder to setup the dependencies +1. In this sample's directory, run `npm install` to install the dependencies. 1. Copy `.env.template` to `.env` 1. [Register an app](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/tutorials/register-your-application/) and copy the Client ID into `.env` in the `CLIENT_ID` property. 1. [Add redirect URIs](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/tutorials/add-redirect-uri/) for `http://localhost:3000/authenticate` to your registered application. -1. Replace the `ENCRYPTION_KEY` and `SESSION_SECRET` values with new values. You can use a website like https://randomkeygen.com/ to generate new strong keys. +1. Replace the `ENCRYPTION_KEY` and `SESSION_SECRET` values with new values. You can use a website like to generate new strong keys. 1. Run `npm run start` -1. Visit http://localhost:3000 to start. +1. Visit to start. + +## Local ArcGIS REST JS + +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js-npm), referencing these packages that this sample uses as necessary: + +- `arcgis-rest-request` ## How it works From e2138082175caf254ffd7b048ea37aff11af8bb6 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Fri, 3 Jan 2025 13:56:33 -0600 Subject: [PATCH 11/23] instructions for demo --- samples/feature-service-browser/README.md | 22 +++++++++++++++----- samples/feature-service-browser/index.html | 10 +++++---- samples/feature-service-browser/package.json | 15 ------------- 3 files changed, 23 insertions(+), 24 deletions(-) delete mode 100644 samples/feature-service-browser/package.json diff --git a/samples/feature-service-browser/README.md b/samples/feature-service-browser/README.md index 1f28ddb..0f18545 100644 --- a/samples/feature-service-browser/README.md +++ b/samples/feature-service-browser/README.md @@ -1,8 +1,20 @@ -# Running this demo +# Feature Service (Browser) -1. Make sure you run `npm run build` in the root folder to setup the dependencies -1. `npm start` -1. Visit http://localhost:8080 +## Running this demo + +For this sample, you do not need to install any dependencies - it uses ArcGIS REST JS from the Unpkg CDN. To run this sample, you just need to host the `index.html` file. There are a variety of ways to do that; one simple way is to use the [serve](https://www.npmjs.com/package/serve) package: + +```bash +npx serve +``` + +Then: + +1. Visit 1. Enter a search term and click "Search" to see results -**Note:** The server starts with a special configuration to serve URLs starting with `@esri/arcgis-rest-*` from their respective packages. In your application you will need to change these URLs to point to their respective locations. +### Local ArcGIS REST JS + +If you'd like to use a local version of ArcGIS REST JS, follow the [steps in the parent README](../README.md#local-arcgis-rest-js-browser), updating the script tags in these files as necessary: + +- `index.html` diff --git a/samples/feature-service-browser/index.html b/samples/feature-service-browser/index.html index a1d7cf8..95e884b 100644 --- a/samples/feature-service-browser/index.html +++ b/samples/feature-service-browser/index.html @@ -2,6 +2,10 @@ + + + + @@ -49,16 +53,14 @@

query features!

-

Try 'elm' or 'oak' for Type. Try 'fair' or 'good' for Condition.

+

Try 'elm' or 'oak' for Type. Try 'fair' or 'good' for Condition.

- - - + + + + + @@ -24,15 +29,15 @@

get to geocodin!

- +

- +

- +

@@ -42,10 +47,6 @@

get to geocodin!

- - - - @@ -23,10 +14,19 @@

Results

+ + + +
+

Messages

+
+

Results

+
+
+ diff --git a/samples/jsapi-integration/config.js b/samples/jsapi-integration/config.js index 6cea071..57f3fb4 100644 --- a/samples/jsapi-integration/config.js +++ b/samples/jsapi-integration/config.js @@ -1,9 +1,9 @@ /* -You can generate your own clientid by creating an application on the ArcGIS for Developers site. Be sure to add http://localhost:8080/ as a redirect uri for your application +You can generate your own clientid by creating an application on the ArcGIS for Developers site. Be sure to add http://localhost:3000 as a redirect uri for your application. -once you have a clientid of your own, copy/paste it here and rename this file 'config.js' +Once you have a clientid of your own, copy/paste it here. */ const config = { clientId: "3CiiHWyTNMIRNyF1", - redirectUri: "http://localhost:8080/authenticate.html" + redirectUri: "http://localhost:3000/authenticate" }; diff --git a/samples/jsapi-integration/index.html b/samples/jsapi-integration/index.html index ea2f780..2dc93c5 100644 --- a/samples/jsapi-integration/index.html +++ b/samples/jsapi-integration/index.html @@ -18,8 +18,8 @@ - - + +