https://github.com/ibm-cloud-security/app-id-sample-js
https://github.com/ibm-cloud-security/app-id-sample-js
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ibm-cloud-security/app-id-sample-js
- Owner: ibm-cloud-security
- Created: 2019-10-02T19:15:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T04:51:47.000Z (over 3 years ago)
- Last Synced: 2025-01-11T01:12:16.436Z (over 1 year ago)
- Language: CSS
- Size: 747 KB
- Stars: 0
- Watchers: 9
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JS Sample App
The IBM Cloud App ID SDK can be used with a Vanilla Javascript App. Read the [official documentation](https://cloud.ibm.com/docs/services/appid?topic=appid-single-page) for information on getting started with IBM Cloud App ID and single-page applications.
## Table of Contents
- [Getting Started][1]
- [Running the App Locally][2]
## Getting Started
Before you begin, you will need an [IBM Cloud App ID](https://www.ibm.com/cloud/app-id) instance with a `singlepageapp` application created. For more information on how to create a `singlepageapp`, visit the [documentation](https://cloud.ibm.com/docs/services/appid?topic=appid-single-page#create-spa-credentials).
In the `config.json` file, replace and with the `clientId` and `discoveryEndpoint` from the application credentials.
```
{
"clientId": "",
"discoveryEndpoint": ""
}
```
## Running the App Locally
Make sure you have updated the `config.json` with your application credentials.
1. Run ```npm install```
2. Start the sample application by running ```npm start```
[1]: #getting-started
[2]: #running-the-app-locally