Welcome to Code Hunter Sharath, where I share programming tutorials, coding challenges, and everything tech! Whether you're starting from scratch or looking to dive deeper, my videos are designed to help you become a better coder.
π Subscribe to Code Hunter Sharath
Check out my channel's progress:
- 5000 Subscribers Goal! β Help me reach this goal!
- Current Subscribers:
- Total Views:
A modern, portfolio-ready Weather Dashboard built using HTML, CSS, and JavaScript, powered by the OpenWeather API and enhanced with an interactive Leaflet map and Dark Mode.
This project demonstrates real-world frontend development practices including API integration, clean JavaScript architecture, and user-focused UI design.
π Try the application live here:
π https://codehuntersharath.github.io/Weather-Dashboard-Advanced-JavaScript-Project/
Learn how this project is built step-by-step on YouTube:
If youβre learning JavaScript and building real projects, consider subscribing for weekly hands-on tutorials.
If this project helped you:
π Like the video
π¬ Leave a comment
π Share with friends
π Subscribe for weekly JavaScript projects
Your support helps me create more free learning content π
- π¦ Real-time weather information
- π 5-day weather forecast
- π Dark / Light mode toggle
- πΊ Interactive map using Leaflet.js
- π Search weather by city
- π OpenWeather API integration
- π§ Clean and scalable JavaScript architecture
- π§ͺ Manual testing and error handling
- HTML5
- CSS3
- JavaScript (ES6+)
- OpenWeather API
- Leaflet.js
weather-dashboard/
β
βββ index.html
βββ style.css
βββ script.js
Follow these steps to run the project locally.
git clone https://github.com/your-username/weather-dashboard.git
cd weather-dashboard
Open script.js and replace the placeholder:
const API_KEY = "YOUR_API_KEY_HERE";
Get your free API key from:
https://openweathermap.org/
Simply open index.html in your browser.
No build tools or dependencies required.
This project uses Leaflet.js to:
- Display weather-based locations
- Show city coordinates on the map
- Dynamically update the map when searching new cities
Leaflet is lightweight and ideal for modern frontend dashboards.
Dark mode is implemented using:
- CSS variables
- JavaScript theme toggle logic
Benefits include improved accessibility, better user experience, and easy theme scalability.
The application handles:
- Invalid city names
- Empty search input
- API request failures
- Network errors
Manual testing ensures the project behaves like a real production-ready application.
- β Save favorite cities
- π Auto-detect user location
- βοΈ React version
- β‘ Progressive Web App (PWA)
- π Backend integration
Suggestions are welcome via issues or video comments.
π₯ Build an Advanced Weather Dashboard with HTML, CSS & JavaScript
π https://www.youtube.com/@CodeHunterSharath
Contributions are welcome.
- Fork the repository
- Create a new feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
Sharathchandar K
Full Stack Developer | Educator | Creator
This project is created for educational purposes.
β If you found this project useful, please star the repository to support the series!
Built with β€οΈ by Sharathchandar K
