Skip to content

A simple New York Times article API consumer built in React

Notifications You must be signed in to change notification settings

EuniceB/nyt-api-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New York Times article search application

How to run this project

  1. Run npm install to install all the dependencies
  2. Create an .env file with REACT_APP_API_KEY=<YOUR_API_KEY> and place it at the root of the project (next to package.json)
  3. Run npm start to start the local server
  4. Open localhost:3000 in your browser

Notes: The .env file creates some obfuscation but the environment variable value is still going to be in the build so it's not the best solution. The best would be to have a server proxy. That server would be the one with the API key and it would add it to the client-side requests before contacting the API.

About

A simple New York Times article API consumer built in React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published