From 089a480d797a3be0150d7017c04ed931833c29f1 Mon Sep 17 00:00:00 2001
From: Josef Norlin <23150232+josefnorlin@users.noreply.github.com>
Date: Sat, 8 Aug 2020 16:26:30 +0200
Subject: [PATCH 1/2] Add information about renaming env.example to .env to
avoid confusion in the forum
---
_chapters/add-a-create-note-api.md | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/_chapters/add-a-create-note-api.md b/_chapters/add-a-create-note-api.md
index 90a12bcbe..2eb96a9ba 100644
--- a/_chapters/add-a-create-note-api.md
+++ b/_chapters/add-a-create-note-api.md
@@ -152,7 +152,13 @@ The `iamRoleStatements` section is telling AWS which resources our Lambda functi
### Test
-Now we are ready to test our new API. To be able to test it on our local we are going to mock the input parameters.
+
To prepare for testing, you first need to rename the `env.example` file to `.env`.
+
+```bash
+$ mv env.example .env
+```
+
+We'll come back to that later, but now we are ready to test our new API. To be able to test it on our local we are going to mock the input parameters.
In our project root, create a `mocks/` directory.
From c0cbad573b973808bc9c915a2d73b64522ed388e Mon Sep 17 00:00:00 2001
From: Josef Norlin <23150232+josefnorlin@users.noreply.github.com>
Date: Mon, 10 Aug 2020 19:02:39 +0200
Subject: [PATCH 2/2] Added an extra tip so not more people stay inside the
/libs folder
---
_chapters/add-a-get-note-api.md | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/_chapters/add-a-get-note-api.md b/_chapters/add-a-get-note-api.md
index 6e8e0ca75..d02e98da0 100644
--- a/_chapters/add-a-get-note-api.md
+++ b/_chapters/add-a-get-note-api.md
@@ -104,3 +104,15 @@ The response should look similar to this.
```
Next, let's create an API to list all the notes a user has.
+
+---
+
+#### Common Issues
+
+- No response
+
+ If you get no response when you invoke your function, check if you are in the base directory and not inside the /libs directory. If so, run this to move up a directory:
+
+``` bash
+$ cd ..
+```