forked from smart-on-fhir/smart-launcher-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a695835
commit ce3d649
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
## Using with Aidbox | ||
|
||
### 1. Start Aidbox Server | ||
|
||
Run Aidbox locally if you haven't already: | ||
|
||
|
||
```bash | ||
mkdir aidbox && cd aidbox | ||
curl -JO https://aidbox.app/runme && docker compose up | ||
``` | ||
|
||
More details on [Aidbox Documentation](https://docs.aidbox.app/getting-started) | ||
|
||
### 2. Create a Client in Aidbox | ||
|
||
Open Aidbox REST Console and run the following request to create a new Client: | ||
|
||
```http request | ||
POST /Client | ||
Accept: text/yaml | ||
Content-Type: text/yaml | ||
id: smart-launcher-v2 | ||
secret: eyJ0eXAiOiJKV1QiLCJhbGciOiJ | ||
grant_types: | ||
- basic | ||
``` | ||
|
||
### 3. Start SMART Launcher | ||
|
||
Run docker container with the following command: | ||
|
||
```bash | ||
docker run --rm \ | ||
--name smart-launcher-v2 \ | ||
-e FHIR_SERVER_R4="http://host.docker.internal:8080/fhir" \ | ||
-e FHIR_SERVER_R4_BASIC_AUTH="c21hcnQtbGF1bmNoZXItdjI6ZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lK" \ | ||
-p 8081:80 \ | ||
ghcr.io/healthsamurai/smart-launcher-v2 | ||
``` | ||
where `FHIR_SERVER_R4` is the URL of the Aidbox server and `FHIR_SERVER_R4_BASIC_AUTH` is the basic auth token from the Client created in the previous step (base64 of client_id:client_secret). | ||
|
||
### 4. Launch SMART App | ||
|
||
Open SMART App Launcher web interface at http://localhost:8081 and follow the instructions on the page to launch a your SMART App. |