How adnanbhutta/forecastnest works
Project type and purpose
• This is a full-stack web application (“Django Weather App”) built on the Django (MVT) framework.
• It provides real-time weather data and dynamic background images by integrating with two external APIs (OpenWeatherMap & Google Custom Search).
File structure
• Top-level:
• manage.py (entry point for Django CLI)
• db.sqlite3 (local development database)
• assets, static (CSS, images)
• weatherproject/ (Django project settings, URL routing, WSGI/ASGI)
• weatherapp/ (Django app: views, URLs, templates, static files, migrations)
• Patterns:
• MVT (Model-View-Template) with no complex microservices—just one app.
• API clients are invoked in views.py.
• Static files served via Django’s static pipeline.
README for additional insights
• Backend: Django 5.x, Python 3.x
• Frontend: Responsive HTML/CSS (glassmorphism)
• APIs:
• OpenWeatherMap JSON API (weather data)
• Google Custom Search JSON API (background images)
• Deployment ready for Heroku/Vercel.
Essential elements to capture
• Labels on nodes: exactly match component names (e.g., “weatherapp/views.py”).
• Arrowheads showing direction of data flow.
• A note on environment variables (.env) in settings.py for API keys.