Skip to content

A news application that fetches and displays the latest articles using The Guardian API, offering real-time updates and customizable news feeds.

Notifications You must be signed in to change notification settings

AbdulAHAD968/PULSE-WIRE

Repository files navigation

📰 Pulse-Wire

Pulse-Wire is a responsive single-page web application that delivers the latest headlines and news articles using The Guardian Open Platform API. Users can browse top headlines, search for specific news topics, and bookmark articles for later reading.


🌐 Live Demo

🔗 Click here to visit Pulse-Wire (demo link)


🚀 Features

  • 🔎 Search for news by keywords
  • 📰 View latest top headlines from The Guardian
  • 🗂️ Auto-generated categories for visual appeal
  • 📱 Responsive UI for all devices
  • 💾 Bookmark functionality (optional)
  • 🔄 Retry option on network failure
  • 🌑 Placeholder content for missing data

📸 Screenshots

Landing Page Home Page Search Results Filters


🧰 Tech Stack


🛠️ Setup Instructions

  1. Clone the repository
git clone https://github.com/your-username/pulse-wire.git
cd pulse-wire
  1. Install dependencies
  • npm install
  • Create .env file
  • VITE_GUARDIAN_API_KEY=your_guardian_api_key Or hardcode the key in your hook temporarily for testing.
  1. Run the application

📦 Folder Structure

src/
│
├── components/       # Reusable UI components (e.g., NewsCard, SearchBar)
├── hooks/            # Custom React hooks (e.g., useNews)
├── pages/            # Page-level components (e.g., Home.jsx)
├── styles/           # CSS files
└── App.jsx           # Root component

🔐 API Key Setup

To use The Guardian API:

  1. Sign up at The Guardian Developer Portal

  2. Generate your API key

  3. Replace the key in either:

    • useNews.js file
      or
    • Create a .env file and add:
      VITE_GUARDIAN_API_KEY=your_guardian_api_key
    • Then access it in code using:
      import.meta.env.VITE_GUARDIAN_API_KEY

📄 License

MIT License © 2025 Abdul Ahad


🙌 Acknowledgements

About

A news application that fetches and displays the latest articles using The Guardian API, offering real-time updates and customizable news feeds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •