Unrained is a sleek and modern weather app built with Django. It allows users to search for weather information by city name, view detailed weather data, and enjoy a clean, responsive user interface. The app integrates with the OpenWeatherMap API to fetch real-time weather data.
-
City Search: Search for weather information by city name.
-
City Selection: Choose from a list of matching cities if multiple results are found.
-
Detailed Weather Data: View temperature, humidity, wind speed, sunrise/sunset times, and more.
-
Responsive Design: Works seamlessly on desktop and mobile devices.
-
CSRF Protection: Secure forms with Django's built-in CSRF protection.
-
Deployment Ready: Configured for easy deployment on Railway.
-
Backend: Django (Python)
-
Frontend: HTML, CSS, JavaScript
-
API: OpenWeatherMap
-
Deployment: Vercel
-
Static Files: Whitenoise
-
Python 3.8+
-
Django 4.0+
-
An OpenWeatherMap API key (sign up at OpenWeatherMap)
- Clone the Repository:
git clone https://github.com/your-username/unrained.git
cd unrained- Set Up a Virtual Environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install Dependencies:
pip install -r requirements.txt- Set Up Environment Variables:
Edit the .env.example file in the root directory with your assigned keys:
API_KEY=YOUR_OPEN_WEATHER_API_KEY # available on registration (free)
SECRET_KEY=YOUR_DJANGO_SECRET_KEY # found in unrained/settings.py
API_ANALYTICS_KEY=YOUR_ANALYTICS_API_KEY # https://www.apianalytics.dev/and then rename the file to .env.
- Run Migrations:
python manage.py migrate- Collect Static Files:
python manage.py collectstatic- Run the Development Server:
python manage.py runserverVisit http://127.0.0.1:8000 in your browser to see the app in action.
If you have any questions or feedback, feel free to reach out: