Skip to content

Commit

Permalink
update instructions based on reviewers comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nanjiangshu committed Dec 10, 2024
1 parent a547591 commit 10fd23b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ popd

4. Start the `sda-download` service using:
```sh
APP_PORT=8553 CONFIGFILE=dev_utils/config-notls_local.yaml go run cmd/main.go
CONFIGFILE=dev_utils/config-notls_local.yaml go run cmd/main.go
```

5. Check if `sda-download` works as expected using:
```sh
curl -o /dev/null -s -w "%{http_code}\n" http://localhost:18080/health
```
If successful, the curl command should output the HTTP code `200`.

You can further check the endpoint `/metadata/datasets` using:
```sh
token=$(curl -s -k http://localhost:8080/tokens | jq -r '.[0]')
curl -H "Authorization: Bearer $token" http://localhost:8553/metadata/datasets
curl -H "Authorization: Bearer $token" http://localhost:18080/metadata/datasets
```
If successful, the curl command should output a JSON body containing:
```json
Expand All @@ -40,7 +46,7 @@ If successful, the curl command should output a JSON body containing:
### Running other SDA services with `go run`
Running other SDA services located in the `sda` subfolder, such as `ingest` or `verify`, differs slightly from running the `sda-download` service. Here, we'll use `ingest` as an example.

1. Bring up all SDA services with the S3 backend and populate them with test data by running the following command in the root folder of the repository (this step is the same as for `sda-download`):
1. Bring up all SDA services with the S3 backend and populate them with test data by running the following command in the root folder of the repository:
```sh
make integrationtest-sda-s3-run
```
Expand Down

0 comments on commit 10fd23b

Please sign in to comment.