DNA News is a web application that provides news from around the world. It fetches news data from the NewsAPI service. Users can browse through a list of news articles, search for specific articles, and keep track of articles they have read or clicked on. The website is built using Vite + React.js and leverages local storage for storing the user's reading history.
- Display a list of news articles retrieved from the NewsAPI.
- Implement a search function to filter news articles.
- Clicking on a news article redirects the user to the corresponding URL provided by the API.
- Maintain a list of read/clicked news articles.
Follow these instructions to get the DNA News up and running on your local machine.
You need a web browser to run this project.
-
Sign up for an account on NewsAPI to obtain an API key.
-
Clone this repository:
git clone https://github.com/rhnas110/dna-news.git
Navigate to the project directory:
cd .\your-folder-create\dna-news\
-
Add the
.env
file and add the variableVITE_NEWS_API_KEY=your-news-api-key
-
Run
npm install
to install dependencies. -
Run
npm run dev
to start the development server. -
Visit
http://localhost:5173
in your web browser to view the website. -
If you find this project useful, please consider the following:
- Follow on GitHub: Click the "Follow" button on the GitHub project page to stay updated with the latest developments.
- Star the project: Click the "Star" button on the GitHub project page to show your appreciation and support.
If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Test your changes thoroughly.
- Submit a pull request with a clear description of your changes.
Your support is greatly appreciated! Thank you for contributing to the project.
This project is licensed under the MIT License.
Feel free to contribute or provide feedback to improve the DNA News website. Happy reading, and Happy coding! 📰🌐
- NewsAPI for providing such a cool API