This is a news app that displays current news articles based on different categories such as politics, sports, technology, etc. It uses the News API to fetch the latest news articles.
The app was built using Node.js on the backend and Bootstrap and Javascript for the frontend. The News API was used to fetch news data.
- The home page displays the latest news articles from various categories.
- The navigation bar contains links to different categories such as politics, sports, technology, etc.
- The search bar allows users to search for news articles based on keywords.
- The app displays the total number of results found for a search query.
- The app is responsive and can be used on different devices.
To use this app, you need to obtain an API key from the News API website. Once you have the API key, replace the apiKey value in the fetchNews function in app.js with your own API key.
To run this app on your local machine, follow these steps:
- Clone the repository: git clone https://github.com/pushkarhelge/NewsApp.git
- Install dependencies: npm install
- Obtain an API key from the News API website and replace the apiKey value in the fetchNews function in app.js with your own API key.
- Start the app: npm start
- Open your web browser and go to http://localhost:3000
That's it! You should now be able to use the News App to browse the latest news in various categories.
To contribute to the project, you can open a pull request with your changes.
If you have any questions or issues, feel free to reach out to me at pushkarhelge7777@gmail.com.