/NewsJunky---News-App-Using-ExpressJs

NewsJunky is a web app that lets you read news articles by category or search for specific topics. It uses HTML, CSS (Bootstrap 5), and JavaScript for the frontend, while the backend is powered by Node.js, Express.js, and Axios. News data is fetched using the News API, and environment variables are managed with dotenv.

Primary LanguageJavaScript

NewsJunky - News App

NewsJunky is a web application that allows users to explore and read news articles from various categories. Stay informed about the latest happenings in areas such as weather, sports, education, and more.

Table of Contents

Features

  • Browse news articles by different categories.
  • Search for specific topics or keywords.
  • Pagination support for navigating through multiple pages of results.
  • Display relevant details such as article title, description, publication date, and source.

Technologies Used

Frontend:

  • HTML
  • CSS (Bootstrap 5)
  • JavaScript

Backend:

  • Node.js
  • Express.js
  • Axios for making HTTP requests

Others:

  • News API for fetching news data
  • dotenv for managing environment variables

Installation

  1. Clone the repository:

       git clone https://github.com/onkaryemul/NewsJunky---News-App-Using-ExpressJs.git
  2. Navigate to the project directory:

       cd NewsJunky---News-App-Using-ExpressJs
  3. Install dependencies:

       npm install
  4. Create a .env file in the project root and add your News API key:

       NEWS_API_KEY=your_news_api_key

Replace your_news_api_key with your actual API key.

Usage

  1. Start the development server:

       npm start
  2. Open your web browser and go to http://localhost:3000 to access NewsJunky.

  3. Explore different categories, search for topics, and stay informed with the latest news.

Contributing

Contributions are welcome! Feel free to fork the repository, make improvements, and submit a pull request. Please follow best practices and maintain code clarity.