NewsMedia is a React app that uses the News API to fetch news articles from various sources. It is a single page application that uses React Router to navigate between different pages.
- View news articles from various sources
- View news articles from a specific source
- View news articles from a specific category
- View news articles from a specific date
- View news articles from a specific source and category
- View news articles from a specific source and date
- View news articles from a specific category and date
- View news articles from a specific source, category and date
- View news articles from a specific country
- View news articles from a specific country and category
- React
- React Router
- React Hooks
- React Bootstrap
- News API
Method 1: Running the Web-Application on your local machine by installing the dependencies and your API key
- Get your API key
- Go to
src/App.js
and replaceprocess.env.REACT_APP_NEWS_API_KEY
with your API key
Installs all the dependencies required to run the app.
Runs the app in the development mode. Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes. You may also see any lint errors in the console.
Method 2: By running the Build folder with Live Server (VS Code Extension) or any other server on localhost
- Open the Build folder in VS Code
- Install Live Server Extension
- Select Open with Live Server from the context menu only*
- The Web-Application will be running on localhost