This repository contains a web application that utilizes the Hacker News API to display top stories, allows users to search for news, and fetches comments on clicking a particular news item.
- View top stories from Hacker News.
- Search for news based on keywords.
- Fetch and display comments for a specific news item.
- React for building the user interface.
- Hacker News API for fetching news and comments.
- React-bootstrap from responsive design
-
Clone the repository to your local machine:
git clone https://github.com/anwesha2002/Hacker_News_Unitylabs.git
2.Navigate to the project directory:
cd Hacker_News_Unitylabs
3.Install dependencies:
npm install
4.Run the application:
npm start
- The home page displays the top stories from Hacker News.
- Use the search bar to search for news based on keywords.
- Click on a news item to view its details and fetch comments.
- src/Pages/Home.tsx : Page to display top stories.
- src/Pages/postDetail.tsx: Page to display news details and comments.
- src/App.tsx: Main application component.