Skip to content

MMT-3954: Updating README #1332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,34 @@ To run GraphDB in docker, run:

#### Running Serverless Offline (API Gateway/Lambdas)

In order to run serverless-offline, which is used for mimicking API Gateway to call lambda functions, run:
In order to run serverless-offline, which is used for mimicking API Gateway to call lambda functions, run the following based the environment you have cmr-graphql pointed to:

Environment|CLI|
|-|-|
|Local| $ npm run offline|
|SIT| $ EDL_PASSWORD=SIT Password npm run ffline
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put SIT Password in single quotes to be consistent with the UAT one below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really wanted to eliminate anything that isn't absolutely needed as every variable can potentially break the sequence. I can make a note only UAT's edl password needs it?

|UAT| $ EDL_PASSWORD='UAT Password' npm run offline

For UAT ONLY - you will need to change lines 34-37 in the static.config file to read as follows:
```bash
EDL_PASSWORD=<password> npm run offline
"edl": {
"host": "https://uat.urs.earthdata.nasa.gov",
"uid": "mmt_uat"
},
```

_Note: The EDL_PASSWORD environment variable is required for group member queries to function._
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is also required for validating tokens for UAT.


#### Running MMT

In the samlCallback/handler.js file, you will need to replace line 17 'ABC-1' to your SIT or UAT token if pointing to one of those environments.

After starting the local CMR, cmr-graphql and GraphDB, run:

```bash
npm start
```
If switching environments, remember to clear your cookies and login again.

### UMM JSON-Schema

Expand Down
Loading