Skip to content

Commit f4013b6

Browse files
author
JAMES FUQIAN
committed
final touches.
1 parent f2249b2 commit f4013b6

4 files changed

Lines changed: 38 additions & 1 deletion

File tree

README-bb2-dev.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Blue Button 2.0 Sample Application Development Documentation
2+
3+
## Introduction
4+
5+
This README contains information related to developing the SDK.
6+
7+
It is intended for BB2 team members or others performing sample application development work.
8+
9+
## Run selenium tests in docker
10+
11+
Configure the remote target BB2 instance where the tested app is registered (as described above "Running the Back-end & Front-end")
12+
13+
Change your `callbackUrl` configuration to use `server` instead of `localhost`. For example:
14+
```JSON
15+
"callback_url": "http://server:3001/api/bluebutton/callback/"
16+
```
17+
18+
You will also need to add this URL to your `redirect_uris` list in your application's configuration on the BB2 Sandbox UI.
19+
20+
Go to local repository base directory and run docker compose as below:
21+
22+
docker-compose -f docker-compose.selenium.yml up --abort-on-container-exit
23+
24+
Note: --abort-on-container-exit will abort client and server containers when selenium tests ends
25+
26+
Note: You may need to clean up already existing Docker containers, if you are having issues or have changed your configuration file.
27+
28+
## Visual trouble shoot
29+
30+
Install VNC viewer and point browser to http://localhost:5900 to monitor web UI interactions
76.8 KB
Binary file not shown.

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
],
4646
"dependencies": {
4747
"@types/express": "^4.17.14",
48-
"cms-bluebutton-sdk": "file:../../cms-bb2-node-sdk/",
48+
"cms-bluebutton-sdk": "file:./cms-bluebutton-sdk-1.0.0.tgz",
4949
"express": "^4.18.2",
5050
"ts-node": "^10.9.1",
5151
"typescript": "^4.9.3"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"clientId": "<client_id>",
3+
"clientSecret": "<client_secret>",
4+
"callbackUrl": "http://server:3001/api/bluebutton/callback/",
5+
"version": "2",
6+
"environment": "SANDBOX"
7+
}

0 commit comments

Comments
 (0)