A web application that displays news articles based on the user's geographical location.
Built with Next.js, IPStack API, and World News API, it offers a personalized news experience tailored to the user's region.
- 📍 Automatic user location detection using IPStack API
- 📰 Region-specific news articles from World News API
- 🌐 Support for multiple regions worldwide
- 📱 Responsive design for various devices
To set up the Regional News App project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/apilayer/regional-news-app.git
-
Navigate to the project directory:
cd regional-news-app
-
Install the dependencies:
npm install
-
Create a
.env.local
file in the root directory and add your API keys:IPSTACK_API_KEY=your_ipstack_api_key_here WORLD_NEWS_API_KEY=your_world_news_api_key_here
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser to see the application.
- Upon loading, the app will attempt to detect your current location using the IPStack API.
- Once your location is determined, the app will fetch relevant news articles for your region using the World News API.
- Browse through the displayed news articles relevant to your detected location.
- Next.js
- React
- IPStack API for geolocation
- World News API for news content
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE.md file for details.
If you encounter any issues or have questions, please file an issue on the GitHub repository.