Skip to content

Commit

Permalink
Clarify key setup steps
Browse files Browse the repository at this point in the history
  • Loading branch information
cjsim89 authored Nov 17, 2023
1 parent 8a6ac38 commit b921b2b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions module3/lessons/testing_tools_for_api_consumption.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ Slides are available [here](https://github.com/turingschool/backend-curriculum-s

## Required Setup

- `bundle`
- `rails db:{create, migrate}`
- [Request a Propublica API Key](https://www.propublica.org/datastore/api/propublica-congress-api)
- Clone [this repo](https://github.com/turingschool-examples/house-salad-7/tree/testing-setup) (forking is optional since we won't ask you to push up any changes)
- Verify that you are able to launch VS Code from the command line.
- Clone [the House Salad 7](https://github.com/turingschool-examples/house-salad-7/tree/testing-setup)
- (forking is optional since we won't ask you to push up any changes)
- In the `testing-setup` branch, run setup steps:
```bash
bundle
rails db:{create, migrate}
```
- Verify that you are able to launch VS Code from the command line. `code`
- If the following steps don't work, you'll need to follow [these 'Launching From the Command Line' steps](https://code.visualstudio.com/docs/setup/mac#:~:text=Keep%20in%20Dock.-,Launching%20from%20the%20command%20line,code) to configure the command
- Generate what is called a 'master key' by running `EDITOR="code --wait" rails credentials:edit` in the command line
- This will create a new key in `config/master.key` and a temporary YAML file which will open in your text editor.
Expand Down Expand Up @@ -457,4 +461,4 @@ This example uses a "default cassette options" flag, setting a re-record interva
- Why don't we want VCR to record our API key?
- How are WebMock and VCR similar? different?

You can find this code complete on this branch [here](https://github.com/turingschool-examples/house-salad-7/tree/testing-tools-complete).
You can find this code complete on this branch [here](https://github.com/turingschool-examples/house-salad-7/tree/testing-tools-complete).

0 comments on commit b921b2b

Please sign in to comment.