Skip to content

Commit 55fcd0a

Browse files
committed
Merge branch 'master-new'
2 parents 40c0f1e + 79621b6 commit 55fcd0a

5 files changed

Lines changed: 134 additions & 176 deletions

File tree

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@ This repo is for the serverless backend API that we build over the course of the
88

99
To support the different chapters and steps of the tutorial; we use branches to represent the project codebase at the various points. Here is an index of the various chapters and branches in order.
1010

11-
- [Add a Create Note API](../../tree/add-a-create-note-api)
12-
- [Add a Get Note API](../../tree/add-a-get-note-api)
13-
- [Add a List All the Notes API](../../tree/add-a-list-all-the-notes-api)
14-
- [Add an Update Note API](../../tree/add-an-update-note-api)
15-
- [Add a Delete Note API](../../tree/add-a-delete-note-api)
16-
- [Handle API Gateway CORS errors](../../tree/handle-api-gateway-cors-errors)
11+
- [Initialize the Backend Repo](../../tree/initialize-the-backend-repo)
12+
- [Handle API Gateway CORS Errors](../../tree/handle-api-gateway-cors-errors)
1713
- [Deploy Your Serverless Infrastructure](../../tree/deploy-your-serverless-infrastructure)
18-
- [Unit Tests in Serverless](../../tree/unit-tests-in-serverless)
1914

2015
#### Usage
2116

@@ -58,11 +53,10 @@ Finally, run this to deploy to your AWS account.
5853
$ serverless deploy
5954
```
6055

61-
This project refers to an `env.yml` file for secret environment variables that are not checking in to the repo. Make sure to create one before dpeloying - https://serverless-stack.com/chapters/load-secrets-from-env-yml.html.
56+
This project refers to an `.env` file for secret environment variables that are not checking in to the repo. Make sure to create one before dpeloying - https://serverless-stack.com/chapters/load-secrets-from-env.html.
6257

6358
---
6459

6560
This repo is maintained by [Anomaly Innovations](https://anoma.ly); makers of [Seed](https://seed.run) and [Serverless Stack](https://serverless-stack.com).
6661

6762
[Email]: mailto:contact@anoma.ly
68-

create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { success, failure } from "./libs/response-lib";
55
export async function main(event, context) {
66
const data = JSON.parse(event.body);
77
const params = {
8-
TableName: process.env.tableName,
8+
TableName: "notes",
99
Item: {
1010
userId: event.requestContext.identity.cognitoIdentityId,
1111
noteId: uuid.v1(),

0 commit comments

Comments
 (0)