Interactive 3D Globe with live weather and country information.
An interactive 3D globe application built with Django, Three.js, and Three-Globe. Users can explore countries around the world and view real-time weather conditions along with geographic information.
-
Interactive 3D Earth visualization
-
Country selection with mouse interaction
-
Real-time weather information
-
Country details:
- Official name
- Capital city
- Population
- Area
- Currency
- Language
- Coordinates
-
Smooth camera animations
-
Country labels
-
Auto-rotating globe
- Python
- Django
- PostgreSQL
- JavaScript
- Three.js
- Three-Globe
- HTML
- CSS
- GeoJSON
- OpenWeather API
- REST API
Clone the repository:
git clone https://github.com/your-username/3d-weather-globe.git
cd 3d-weather-globepython manage.py import_countriesCreate a virtual environment:
python -m venv venvActivate the virtual environment:
Windows
venv\Scripts\activateLinux / macOS
source venv/bin/activateInstall dependencies:
pip install -r requirements.txtCreate a .env file:
DEBUG=True
DB_NAME=your_database
DB_USER=your_username
DB_PASSWORD=your_password
DB_HOST=127.0.0.1
DB_PORT=5432
WEATHER_API_KEY=your_api_keyApply migrations:
python manage.py migrateRun the development server:
python manage.py runserverOpen your browser and visit:
http://127.0.0.1:8000/
This project is licensed under the MIT License.