React with API

By Mekinsie Callahan


Description

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.


Technologies used

  • React
  • npm
  • babel
  • JSX
  • CSS
  • Redux

Software Requirements

  • npm is required to run this application

Install npm here


Installation Instructions

  1. Navigate to the desired directory where you would like to clone the project.

  2. 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
  1. Open the project in VSCode by typing the following in your terminal:
$ code .

Get your API key from NYT

  1. Navigate to https://developer.nytimes.com/get-started and follow the instructions on how to obtain your own API key.

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

Start a local server

Note: VSCode is a code editing software. If you don't already have it, you can download it here

  1. To start a local server, type the following into your terminal:
$ npm start
  1. Open your default browser and type "localhost:3000" into the search bar and press enter. Here, you will see the live server.

License

GPLv3
Mekinsie Callahan © 2021


Contact Information

Reach me via LinkedIn or email.