Welcome to NewsHub, a web application that provides you with the latest news headlines and articles based on your preferences. You can check the live preview here: https://dapper-semolina-c48b00.netlify.app/
- Personalized News: Customize your news feed by selecting your preferred country and language.
- Search: Easily search for news articles based on keywords or topics of interest.
- Responsive Design: Enjoy a seamless experience on various devices, including desktops, tablets, and smartphones.
- Query Caching: Implement caching mechanism to store frequently accessed news articles, reducing the need for repeated API requests.
Follow these steps to get started with NewsHub:
-
Clone the repository:
git clone https://github.com/smalik21/news-hub.git
cd news-hub
-
Install dependencies:
npm install
-
Set up environment variables: Create a .env file in the root directory with the following content:
- VITE_APP_LOCATION_API_KEY=your_location_api_key
- VITE_APP_NEWS_API_KEY=your_news_api_key
-
Run the application:
npm start
The application will be accessible athttp://localhost:5173
.
- TypeScript
- HTML
- CSS
- Fetch API