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.
🔗 Click here to visit Pulse-Wire (demo link)
- 🔎 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
- Frontend: React.js (SPA)
- Styling: CSS / Tailwind (optional)
- Data Source: The Guardian Open Platform
- HTTP Client: Axios
- Clone the repository
git clone https://github.com/your-username/pulse-wire.git
cd pulse-wire
- 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.
- Run the application
- npm run dev
- Visit: http://localhost:5173 (or as defined by your dev server)
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
To use The Guardian API:
-
Sign up at The Guardian Developer Portal
-
Generate your API key
-
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
MIT License © 2025 Abdul Ahad