NewsBlock is a news-fetching web application that allows users to get the latest news blocks from around the world. With NewsBlock, you can stay updated on a wide range of topics, including politics, weather, sports, entertainment, and more. Built using React and powered by the NEWS API, NewsBlock offers a user-friendly interface and a seamless news browsing experience.
- News Blocks: Get access to a diverse range of news blocks from various sources and categories.
- Customization: Personalize your news feed by selecting your preferred topics and sources.
- Sharing: Easily share interesting news articles with your friends and family via social media platforms or email.
- Responsive Design: NewsBlock is designed to work seamlessly across different devices and screen sizes.
To run NewsBlock locally, follow these steps:
-
Clone the repository: git clone https://github.com/your-username/newsblock.git
-
Navigate to the project directory: cd newsblock
-
Install the dependencies: npm install
-
Get your API key:
- Visit the NEWS API website and create an account.
- Obtain your API key from the dashboard.
- Configure the API key:
- Open the
.env
file in the root directory of the project. - Replace
YOUR_API_KEY
with your actual NEWS API key.
-
Start the development server: npm start
-
Open your web browser and visit
http://localhost:3000
to access NewsBlock.
NewsBlock relies on the following dependencies:
- React: JavaScript library for building user interfaces.
- NEWS API: Provides access to news articles from various sources worldwide.
For a complete list of dependencies, please refer to the package.json
file.
We welcome contributions to enhance NewsBlock and make it even better. If you have any bug fixes, improvements, or new features to propose, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your changes to your forked repository.
- Submit a pull request, explaining the changes you have made.
Please ensure your code follows the existing coding style and conventions.