Skip to content

codehuntersharath/Weather-Dashboard-Advanced-JavaScript-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Code Hunter Sharath πŸš€

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 My YouTube Channel

πŸ‘‰ Subscribe to Code Hunter Sharath


πŸ“ˆ My YouTube Stats

Check out my channel's progress:

  • Subscribers: YouTube Subscribers
  • Total Views: YouTube Views

🎯 Milestones


🌦 Weather Dashboard – Advanced JavaScript Project

JavaScript HTML CSS

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.


🌐 Live Demo

πŸš€ Try the application live here:
πŸ‘‰ https://codehuntersharath.github.io/Weather-Dashboard-Advanced-JavaScript-Project/


πŸŽ₯ Full Video Tutorial

Learn how this project is built step-by-step on YouTube:

Watch the video

If you’re learning JavaScript and building real projects, consider subscribing for weekly hands-on tutorials.


❀️ Support & Motivation

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 πŸš€


✨ Features

  • 🌦 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

πŸ›  Tech Stack

  • HTML5
  • CSS3
  • JavaScript (ES6+)
  • OpenWeather API
  • Leaflet.js

πŸ“‚ Project Structure

weather-dashboard/
β”‚
β”œβ”€β”€ index.html
β”œβ”€β”€ style.css
└── script.js

πŸ”§ Setup & Installation

Follow these steps to run the project locally.

1. Clone the repository

git clone https://github.com/your-username/weather-dashboard.git

2. Navigate to the project folder

cd weather-dashboard

3. Add your OpenWeather API key

Open script.js and replace the placeholder:

const API_KEY = "YOUR_API_KEY_HERE";

Get your free API key from:
https://openweathermap.org/


4. Run the application

Simply open index.html in your browser.

No build tools or dependencies required.


πŸ—Ί Map Integration

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 Implementation

Dark mode is implemented using:

  • CSS variables
  • JavaScript theme toggle logic

Benefits include improved accessibility, better user experience, and easy theme scalability.


πŸ§ͺ Testing & Error Handling

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.


πŸš€ Future Enhancements

  • ⭐ Save favorite cities
  • πŸ“ Auto-detect user location
  • βš›οΈ React version
  • ⚑ Progressive Web App (PWA)
  • πŸ” Backend integration

Suggestions are welcome via issues or video comments.


πŸ“Ί Video Tutorial

πŸŽ₯ Build an Advanced Weather Dashboard with HTML, CSS & JavaScript
πŸ‘‰ https://www.youtube.com/@CodeHunterSharath


🀝 Contributing

Contributions are welcome.

  1. Fork the repository
  2. Create a new feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

πŸ‘¨β€πŸ’» Author

Sharathchandar K
Full Stack Developer | Educator | Creator


πŸ“œ License

This project is created for educational purposes.

⚠️ Please do not re-upload this code or video without proper credit.

⭐ If you found this project useful, please star the repository to support the series!


Built with ❀️ by Sharathchandar K

About

An interactive weather dashboard built with advanced JavaScript concepts. Features real-time weather data, dynamic UI updates, API integration, responsive design, and error handling. Designed to demonstrate modern JS practices, clean code structure, and user-focused functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors