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
Copy file name to clipboardExpand all lines: README-bb2-dev.md
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,3 +75,51 @@ To show the version installed:
75
75
docker-compose exec server pip show cms-bluebutton-sdk
76
76
```
77
77
78
+
### Testing Locally
79
+
80
+
This information is repeated from the SDK (https://github.com/CMSgov/cms-bb2-python-sdk/blob/main/README-sdk-dev.md). It is here for ease of reference as it contains steps relating to the sample client as well.
81
+
The current method for seeing the SDK in action is fairly complex, as it requires also setting up the Python sample client (this repo). These both, of course, depend upon the web-server repo for most of their logic. It is possible that in order to fully understand an issue that arises within the SDK or the sample client, a developer would have to track changes across 3 separate projects. There should be some future work to simplify this process as it is very manual and laborious.
82
+
83
+
The steps listed here are listed elsewhere in the documentation but for the sake of convenience, they are partially repeated here
84
+
and written together so that a developer should be able to follow this step by step.
85
+
86
+
The overall goals are to:
87
+
88
+
- Build a local version of the SDK
89
+
- Run a local version of sample client that consumes a local version of the SDK
90
+
91
+
### Building a local version of the SDK
92
+
93
+
Run the following commands in the base of the SDK repository. The commands suppose that you have the Python sample client cloned in the same folder as this SDK repo. Do not be in a virtualenv while running these commands.
The --o (or outdir) command should effectively 'copy paste' the built version of the .whl file into where it would be needed for the sample client. If you do not want it in the sample client, omit the --o and file path.
101
+
102
+
### Run a local version of sample client that consumes a local version of the SDK
103
+
104
+
Ensure that in bluebutton-sample-client-python-react/server/Dockerfile, uncomment the following line. Replace the version number (1.0.4 in the example) of the .whl file with what has been generated from the previous build command.
105
+
106
+
```
107
+
RUN pip install cms_bluebutton_sdk-1.0.4-py3-none-any.whl
108
+
```
109
+
110
+
In bluebutton-sample-client-python-react/server/Pipfile, add this line:
In the base repository of bluebutton-sample-client-python-react, run the following commands. Ensure that you have no currently running containers or images of the sample client.
Each time a change is made in the SDK, you must repeat all of the previous steps of building and re-running a local sample client. You must also ensure that the containers and images are removed each time.
0 commit comments