Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information about renaming env.example to .env to avoid confusion… #493

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion _chapters/add-a-create-note-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<img class="code-marker" src="/assets/s.png" />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.

<img class="code-marker" src="/assets/s.png" />In our project root, create a `mocks/` directory.

Expand Down
12 changes: 12 additions & 0 deletions _chapters/add-a-get-note-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
```