The purpose of this project is to practice making API calls using fetch with React and Redux. I use a NYT API that returns information about book reviews and the NYT best sellers lists.
- React
- npm
- babel
- JSX
- CSS
- Redux
- npm is required to run this application
-
Navigate to the desired directory where you would like to clone the project.
-
Once you have chosen your desired directory, clone the github repo using the version control tool
git
(download instructions). Type the following command into your terminal:
$ git clone https://github.com/mekinsie/tap-room-redux
- Open the project in VSCode by typing the following in your terminal:
$ code .
-
Navigate to https://developer.nytimes.com/get-started and follow the instructions on how to obtain your own API key.
-
Once you have your own API key, create a .env file in the root directory. Paste the following into the .env file (replace the brackets with your API key without quotes or brackets):
REACT_APP_API_KEY=[Your NYT API key goes here]
Note: VSCode is a code editing software. If you don't already have it, you can download it here
- To start a local server, type the following into your terminal:
$ npm start
- Open your default browser and type "localhost:3000" into the search bar and press enter. Here, you will see the live server.
GPLv3
Mekinsie Callahan © 2021