Skip to content

This Project is developed as a news portal using NEWSAPI | ReactJS | FetchApi | You Can Simply clone the repo and Install NPM & Use It to localhost

Notifications You must be signed in to change notification settings

amankhan404/NewsPortal_NewsAPI_ReactJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Portal

This project is a simple News Portal built using ReactJS and the NEWSAPI. It fetches the latest news articles using the Fetch API and displays them in an easy-to-navigate interface. You can simply clone this repository, install the dependencies, and run the application on your localhost.

Features

  • Fetches the latest news articles using NEWSAPI.
  • Built with ReactJS for a dynamic user interface.
  • Simple and clean design to easily browse through news articles.
  • Fully responsive on desktop and mobile devices.
  • Uses Fetch API to get news data.

Technologies Used

  • ReactJS: JavaScript library for building the user interface.
  • NEWSAPI: API to fetch the latest news from various sources.
  • Fetch API: To fetch data from NEWSAPI.
  • HTML/CSS: For structuring and styling the application.

Prerequisites

Before running the project locally, make sure you have the following installed:

Getting Started

Follow these steps to set up and run the project locally:

  1. Clone the repository:
    git clone https://github.com/your-username/news-portal.git

Navigate to the project directory:

cd news-portal Install the necessary dependencies:

npm install Set up your NewsAPI key:

Go to NEWSAPI and sign up to get an API key. Create a .env file in the root of the project and add your API key like this:

REACT_APP_NEWSAPI_KEY=your_api_key_here Run the application:

npm start The application should now be running on http://localhost:3000/.

Contributing If you want to contribute to this project, feel free to fork the repository, create a new branch, and submit a pull request with your changes. Ensure that your changes are well-tested and follow the project’s coding style.

License This project is open-source and available under the MIT License.

Acknowledgements NEWSAPI for providing the API for fetching news articles. ReactJS for providing the JavaScript library to build the user interface.

About

This Project is developed as a news portal using NEWSAPI | ReactJS | FetchApi | You Can Simply clone the repo and Install NPM & Use It to localhost

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published