Skip to content

A lightweight, responsive news application built with Express, HTML, CSS, and JavaScript. Fetches real-time headlines using NewsAPI. Features search function and displays news in modern card-based layout.

Notifications You must be signed in to change notification settings

kumaradarsh2/news-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Web App 🌐📰

Overview

A simple web application that fetches and displays the latest news headlines using NewsAPI.

Features

  • Real-time news fetching
  • Responsive design
  • Search functionality

Technologies Used

  • Node.js
  • Express.js
  • JavaScript
  • HTML & CSS
  • NewsAPI

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/news-app.git
    cd news-app
    
  2. Install dependencies:

    npm install
    
  3. Set up environment variables:

    • Create a .env file in the project root
    • Add your NewsAPI key:
      NEWS_API_KEY=your_news_api_key_here
      

Running the Application

npm start
  • Open http://localhost:3000 in your browser.

API Reference

  • Uses NewsAPI Top Headlines Endpoint
  • Fetches US news by default

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-name)
  3. Commit changes (git commit -m 'Add feature')
  4. Push to branch (git push origin feature-name)
  5. Open a Pull Request

Project Link: https://github.com/kumaradarsh2/news-app

About

A lightweight, responsive news application built with Express, HTML, CSS, and JavaScript. Fetches real-time headlines using NewsAPI. Features search function and displays news in modern card-based layout.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published