{"id":20469091,"url":"https://github.com/ghosts6/weather_news","last_synced_at":"2026-04-07T23:31:38.779Z","repository":{"id":224973351,"uuid":"764741397","full_name":"Ghosts6/weather_news","owner":"Ghosts6","description":"A full-stack web application featuring a robust Django REST API and a modern React/TypeScript frontend. Delivers real-time weather data, global weather news, interactive maps, and user authentication, all within a responsive and intuitive user interface.","archived":false,"fork":false,"pushed_at":"2026-01-20T23:29:02.000Z","size":4293,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-21T09:38:27.014Z","etag":null,"topics":["cache","django","django-orm","django-rest-framework","docker","postgresql","pytest","react","redis","rest-api","tailwindcss","typescript","weather-api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ghosts6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-28T16:19:24.000Z","updated_at":"2026-01-20T23:29:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"9dd8e70e-e32e-45b4-b1f1-2b84cbdc5b7b","html_url":"https://github.com/Ghosts6/weather_news","commit_stats":null,"previous_names":["ghosts6/weather_news"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ghosts6/weather_news","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2Fweather_news","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2Fweather_news/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2Fweather_news/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2Fweather_news/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ghosts6","download_url":"https://codeload.github.com/Ghosts6/weather_news/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghosts6%2Fweather_news/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31533823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","django","django-orm","django-rest-framework","docker","postgresql","pytest","react","redis","rest-api","tailwindcss","typescript","weather-api"],"created_at":"2024-11-15T14:07:56.359Z","updated_at":"2026-04-07T23:31:38.774Z","avatar_url":"https://github.com/Ghosts6.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌍 Weather News\n\n**this project is a sleek, modern web application that delivers real-time weather information and curated news from around the globe. Stay informed about the latest weather updates, and explore news related to tornadoes, storms, and floods, all in one place.**\n\n## ✨ Key Features\n\n- **Real-time Weather:** Get up-to-date weather information for any city, including temperature, wind speed, humidity, and a description of the current conditions.\n- **Hourly Forecasts:** View a detailed hourly forecast.\n- **Global News:** Stay informed with the latest news related to the weather in the selected location (Tornado, Storm, Flood).\n- **Interactive Global Map:** Explore weather patterns worldwide with an interactive map tile proxy.\n- **Search Suggestions:** Find locations easily with a smart search suggestion feature.\n- **Horizontal Scrolling Interface:** A unique and engaging way to browse through different news and weather sections.\n- **Light \u0026 Dark Mode:** Choose your preferred theme for a comfortable viewing experience.\n- **Responsive Design:** Fully responsive and accessible on all devices.\n\n## 🚀 Technologies\n\nThis project is built with a modern and powerful technology stack:\n\n### Backend\n- **Django:** A high-level Python web framework for rapid and clean development.\n- **Django REST Framework:** A powerful toolkit for building robust Web APIs.\n- **Redis:** In-memory data store for caching and performance optimization.\n- **SQLite3:** Default database for simplicity, configurable to use PostgreSQL.\n- **Knox:** For token-based authentication.\n\n### Frontend\n- **React (with TypeScript):** A JavaScript library for building dynamic user interfaces with static typing.\n- **Tailwind CSS:** A utility-first CSS framework for creating custom designs with ease.\n- **esbuild:** An extremely fast JavaScript bundler and minifier.\n- **Leaflet:** An open-source JavaScript library for mobile-friendly interactive maps.\n\n### DevOps\n- **Docker \u0026 Docker Compose:** For containerizing and running the application in isolated environments.\n- **GitHub Actions:** CI/CD pipeline for automated testing and deployment.\n\n## 🔑 API Keys \u0026 Environment Variables\n\nTo run this project, you'll need to set up a `docker.env` file in the project's root directory with the following API keys and environment variables:\n\n- **`API_KEY`**: From [OpenWeatherMap](https://openweathermap.org/) for primary weather data.\n- **`NEWS_API_KEY`**: From [NewsAPI](https://newsapi.org/) for news articles.\n- **`WEATHER_API_KEY2`**: From [WeatherAPI](https://www.weatherapi.com/) for hourly forecasts.\n- **`SECRET_KEY`**: A unique secret key for your Django application.\n- **`DJANGO_DEBUG`**: Set to `True` for development and `False` for production.\n- **`DJANGO_ALLOWED_HOSTS`**: Comma-separated list of allowed hosts (e.g., `localhost,127.0.0.1`).\n- **`CORS_ALLOWED_ORIGINS`**: Comma-separated list of allowed origins for CORS (e.g., `http://localhost:3001,http://127.0.0.1:3001`).\n\n## 🏃‍♀️ How to Run\n\nYou can run this project using Docker (recommended) or set it up locally for development.\n\n### Using Docker (Recommended)\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/Ghosts6/weather_news\n   ```\n2. **Create and populate the `docker.env` file:**\n   Create a `docker.env` file in the root of the project and add the necessary API keys and environment variables.\n3. **Build and run with Docker Compose:**\n   ```bash\n   docker-compose build\n   docker-compose up\n   ```\n4. **Access the application:**\n   - Backend API: `http://localhost:8000/`\n   - Frontend App: `http://localhost:3001/`\n\n### Local Development\n\u003cdetails\u003e\n\u003csummary\u003eClick to expand for local setup instructions\u003c/summary\u003e\n\nFor local development, you will need to run the backend and frontend servers in separate terminals.\n\n#### Backend\n1. **Navigate to the backend directory:**\n   ```bash\n   cd backend\n   ```\n2. **Create a virtual environment and install dependencies:**\n   ```bash\n   python -m venv venv\n   source venv/bin/activate\n   pip install -r ../requirements.txt\n   ```\n3. **Set environment variables:**\n   Create a `.env` file in the `backend` directory and add the required environment variables.\n4. **Run the development server:**\n   ```bash\n   python manage.py runserver\n   ```\n   The backend will be available at `http://localhost:8000/`.\n\n#### Frontend\n1. **Navigate to the frontend directory:**\n   ```bash\n   cd frontend\n   ```\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n3. **Run the development server:**\n   ```bash\n   npm start\n   ```\n   The frontend development server will start on `http://localhost:3000/`. It's configured to proxy API requests from `/api` to the backend server running on port 8000. In `docker-compose.yml`, the frontend is exposed on port `3001`.\n\n\u003c/details\u003e\n\n## 📂 Project Structure\n\nThe project is organized into two main parts: a Django backend and a React frontend.\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to expand for project structure details\u003c/summary\u003e\n\n```\n/\n├── backend/          # Django project\n│   ├── climate/      # Main Django project configuration\n│   ├── weather/      # Django app for weather and news\n│   ├── authentication/ # Django app for user authentication\n│   └── ...\n├── frontend/         # React project\n│   ├── src/\n│   │   ├── components/ # Reusable React components\n│   │   ├── pages/      # Main pages of the application\n│   │   ├── context/    # React context for state management\n│   │   └── ...\n│   └── ...\n├── docker-compose.yml\n├── Dockerfile        # For the backend\n├── Dockerfile.frontend\n└── README.md\n```\n\u003c/details\u003e\n\n## 🎥 Demo\n\n\nhttps://github.com/user-attachments/assets/c5e61fd6-3571-4f17-b75b-33293191a466\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosts6%2Fweather_news","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghosts6%2Fweather_news","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosts6%2Fweather_news/lists"}