Skip to content

Commit

Permalink
Merge branch 'master-new'
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed Oct 8, 2019
2 parents 40c0f1e + 79621b6 commit 55fcd0a
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 176 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ This repo is for the serverless backend API that we build over the course of the

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.

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

#### Usage

Expand Down Expand Up @@ -58,11 +53,10 @@ Finally, run this to deploy to your AWS account.
$ serverless deploy
```

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.
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.

---

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

[Email]: mailto:[email protected]

2 changes: 1 addition & 1 deletion create.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { success, failure } from "./libs/response-lib";
export async function main(event, context) {
const data = JSON.parse(event.body);
const params = {
TableName: process.env.tableName,
TableName: "notes",
Item: {
userId: event.requestContext.identity.cognitoIdentityId,
noteId: uuid.v1(),
Expand Down
Loading

0 comments on commit 55fcd0a

Please sign in to comment.