Skip to content

Commit e56219a

Browse files
committed
Add local test with SAM CLI for remix-zip example
1 parent 4b7d019 commit e56219a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

examples/remix-zip/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,12 @@ When the deployment completes, take note of RemixFunctionApi's Value. It is the
3434

3535
Open RemixFunctionApi's URL in a browser, you should see the "Weclome to Remix" page.
3636

37+
## Local test with SAM CLI
3738

39+
In general, you can test your web app locally without simulating AWS Lambda execution environment. But if you want to simulate Lambda and API Gateway locally, you can use SAM CLI.
40+
41+
```shell
42+
sam local start-api --warm-containers EAGER --region us-west-2
43+
```
44+
45+
This command will start a local http endpoint and docker container to simulate API Gateway and Lambda. Please modify the region to match the actual region you are using. You can test it using `curl`, `postman`, and your web browser.

examples/remix/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Open web browser to visit `http://localhost:3000/`
8484
In general, you can test your web app locally without simulating AWS Lambda execution environment. But if you want to simulate Lambda and API Gateway locally, you can use SAM CLI.
8585

8686
```shell
87-
sam local start-api --warm-containers EAGER --region us-west-2
87+
sam local start-api --warm-containers EAGER
8888
```
8989

9090
This command will start a local http endpoint and docker container to simulate API Gateway and Lambda. Please modify the region to match the actual region you are using. You can test it using `curl`, `postman`, and your web browser.

0 commit comments

Comments
 (0)