Skip to content

Commit e868daf

Browse files
authored
Update Readme
1 parent 118a2e6 commit e868daf

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,22 @@ var client = isOffline() ? new AWS.DynamoDB.DocumentClient(dynamodbOfflineOption
8080
```
8181
npm run db-setup
8282
```
83-
* Run the client and server
83+
* Run the client and server locally
8484
```
8585
gulp serve
8686
```
8787
* Visit `http://localhost:8080`
8888

8989
## Deploying to AWS
90-
When you are ready to deploy your database and api to AWS, run following command.
91-
This will deploy your local dabase and local API Gateway to AWS to a given stage.
90+
When you are ready to deploy your database and api to AWS, you can create multiple
91+
APIGateways for different service level stages. For example you can create "dev" and "production" stages.
92+
When you deploy to a specific stage, it will create a separate database tables for that stage.
93+
94+
Following command will deploy your local dabase and local API Gateway to AWS in dev service stage.
95+
```
96+
gulp deploy --stage dev
97+
```
98+
Once you have tested it on dev stage you can do a final production stage release by,
9299
```
93100
gulp deploy --stage prod
94101
```

0 commit comments

Comments
 (0)