Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

Commit

Permalink
update example docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcondemarin committed Sep 6, 2019
1 parent f988e90 commit 4dc88d0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,36 @@ Rename `.env.sample` to `.env` and set your aws credentials.

## Local development

**Provision the DynamoDB Todos Table**
#### Provision the DynamoDB Todos Table

Make sure you have a [running local dynamodb server](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html).

Then simply run:

`npm run dev:infra`

**Start the next app**
#### Start the next app

`npm run dev`
// available at http://localhost:3000

## Production

**Provision the DynamoDB Global Todos Table**
#### Provision the DynamoDB Global Todos Table

`npm run infra`

**Deploying**
#### Deploying

To deploy your application to the cloud:

`npm run deploy:up`

**Tearing down the application resources**
#### Tearing down the application resources

`npm run deploy:down`

## A few notes:
## A few notes

- Server side the DynamoDB table is queried directly for SSR of the page
- On client side `fetch` is used to query the /api that talks to DynamoDB. Client side routing prevents having to reload every resource on the page like js, css, etc.
Expand Down

0 comments on commit 4dc88d0

Please sign in to comment.