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.
- 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.
- 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.
Before running the project locally, make sure you have the following installed:
Follow these steps to set up and run the project locally:
- 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.