Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit b71df46

Browse files
committed
update README with local testing instructions
1 parent fdb8c5d commit b71df46

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,18 @@ eb deploy
8989
eb open
9090
```
9191

92+
## Local Testing
9293

94+
This section contains instructions on how to test the application locally (using mocked services instead of the real AWS services).
95+
96+
### LocalStack
97+
98+
To test this application using [LocalStack](https://github.com/localstack/localstack), you can use the `awslocal` CLI (https://github.com/localstack/awscli-local).
99+
```
100+
pip install awscli-local
101+
```
102+
Simply parameterize the `./createResources.sh` installation script with `aws_cmd=awslocal`:
103+
```
104+
cd aws; aws_cmd=awslocal ./createResources.sh
105+
```
106+
Once the code is deployed to the local S3 server, the application is accessible via http://localhost:4572/cognitosample-localapp/index.html (Assuming "localapp" has been chosen as resource name in the previous step)

0 commit comments

Comments
 (0)