You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IBM Cloud AppID SDK can be used with React to create a secure single-page application. You will need an IBM Cloud App ID instance with a single-page application created. Use the clientId and discoveryEndpoint from the application credentials to initialize the AppID instance.
4
+
5
+
## Prerequisites
6
+
* Node.js version 8 or later
7
+
* npm package manager
8
+
*[IBM Cloud App ID](https://cloud.ibm.com/catalog/services/app-id) instance with [SPA credentials](https://cloud.ibm.com/docs/services/appid?topic=appid-single-page#create-spa-credentials)
9
+
* A [Redirect URI](https://cloud.ibm.com/docs/services/appid?topic=appid-managing-idp#add-redirect-uri) set in the App ID service dashboard
10
+
11
+
## To run locally
12
+
13
+
* Clone the repository
14
+
```
15
+
git clone
16
+
```
17
+
* Navigate to application workspace folder.
18
+
```
19
+
cd angular-sample-spa
20
+
```
21
+
* To get the dpendencies for the app installed run
22
+
```
23
+
npm install
24
+
```
25
+
26
+
* To start the development server run
27
+
```
28
+
ng serve
29
+
```
30
+
31
+
The app will automatically reload if you change any of the source files.
0 commit comments