You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: packages/serverless-nextjs-component/examples/dynamodb-crud/README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -21,36 +21,36 @@ Rename `.env.sample` to `.env` and set your aws credentials.
21
21
22
22
## Local development
23
23
24
-
**Provision the DynamoDB Todos Table**
24
+
#### Provision the DynamoDB Todos Table
25
25
26
26
Make sure you have a [running local dynamodb server](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html).
27
27
28
28
Then simply run:
29
29
30
30
`npm run dev:infra`
31
31
32
-
**Start the next app**
32
+
#### Start the next app
33
33
34
34
`npm run dev`
35
35
// available at http://localhost:3000
36
36
37
37
## Production
38
38
39
-
**Provision the DynamoDB Global Todos Table**
39
+
#### Provision the DynamoDB Global Todos Table
40
40
41
41
`npm run infra`
42
42
43
-
**Deploying**
43
+
#### Deploying
44
44
45
45
To deploy your application to the cloud:
46
46
47
47
`npm run deploy:up`
48
48
49
-
**Tearing down the application resources**
49
+
#### Tearing down the application resources
50
50
51
51
`npm run deploy:down`
52
52
53
-
## A few notes:
53
+
## A few notes
54
54
55
55
- Server side the DynamoDB table is queried directly for SSR of the page
56
56
- 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.
0 commit comments