Skip to content

React app that renders a front-end client and interacts with NewsAPI.

Notifications You must be signed in to change notification settings

7emansell/newsapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News App

This is a simple React app that renders a front-end client and interacts with NewsAPI.

Setting it up

You will need nvm and Node.js.

You will also need to get your own API key from NewsAPI. Add a 'config.js' file in /src. The contents of this file should just be your API key:

src/config.js:

export const API_KEY = "yourkey";

Once that's set up and you're in the repo, run:

nvm use
npm install
npm run start

The site should run locally at http://localhost:8080/.

What's included

The site displays a nav bar, a footer, and cards for each story that include an image, title, and description. Each story links to itself on The New Yorker, and the byline links to the author's contributor page. The site is mobile responsive, and designed in Material UI.

I also added pagination.

Next steps

Given more time to work on this, I would add a search bar, functionality to the links in the nav bar, and testing. I would also tighten up the styling across the board and break down the main page of the app into more distinct components.

About

React app that renders a front-end client and interacts with NewsAPI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published