This project is a Django-based web application that aggregates weather data and news headlines. It provides users with optimal times for outdoor activities based on weather conditions and displays the latest news headlines.
- Fetches and displays weather data including temperature, humidity, and conditions.
- Suggests suitable activities based on weather conditions.
- Aggregates and displays the latest news headlines.
- User-friendly interface for easy navigation.
-
Clone the repository:
git clone https://github.com/f-raph/weather_vibes.git cd weather_vibes -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Set up environment variables:
Create a
.envfile in the project root and add your API keys:WEATHER_API_KEY=your_weather_api_key NEWS_API_KEY=your_news_api_key -
Run the development server:
python manage.py runserver
-
Access the application:
Open your web browser and go to
http://127.0.0.1:8000/. -
View Weather Data:
- The homepage displays the current weather conditions and suggests suitable activities.
-
View News Headlines:
- Scroll to the news section to see the latest news headlines.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
- Weather data provided by OpenWeather.
- News headlines provided by NewsAPI.
For any questions or suggestions, please contact f-raph.