A simple weather application built with React that allows users to search for the current weather conditions in any city. The app includes features like real-time spell-check suggestions, dynamic weather displays, and a sleek UI! 🚀
-
🔍 Search weather conditions by city name.
-
✅ Auto-suggest corrections for misspelled city names using a smart Levenshtein distance algorithm.
-
🌡️ Display current temperature, humidity (💧), and wind speed (🌪️).
-
🎨 Dynamic weather icons and color-coded temperature indicators.
-
📱 Responsive design powered by Tailwind CSS.
-
⚛️ React: Core UI framework.
-
🚀 Axios: Fetch data from OpenWeatherMap API.
-
🖼️ FontAwesome: Stunning icons for weather visuals.
-
🪶 Tailwind CSS: Modern, utility-first styling.
-
🌍 Cities.json: Global city dataset for spell-check magic.
- Clone the repo:
git clone https://github.com/SS-Jane/weather.git
cd weather-app
- Install dependencies:
npm install
- Add API key:
- Create
.envand include:
REACT_APP_WEATHER_API_KEY=your_api_key_here # 🔑openweathermap
- Start the app:
npm run dev # 🚀 vite/react
- Open your browser
- Home page
- Spell check
- Lighthouse score : Mobile
- Lighthouse score : Desktop
weather-app/
├── public/
├── src/
│ ├── components/ # 🧩 React components
│ ├── data/ # 📊 City/icon datasets
│ ├── utils/ # 🔧 Helper functions
│ ├── App.jsx # 🖥️ Main component
│ └── ...
└── README.md # 📖 You're here!
-
🏙️ City Search: Type a city name. Misspelled? We’ll suggest fixes using Levenshtein distance!
-
✏️ Spell Check: Instantly match input to real cities from
cities.json. -
📡 Fetch Data: Pull live weather stats from OpenWeatherMap.
-
☀️ Display: Dynamic UI shows temperature (🌡️), humidity (💧), wind (🌪️), and icons!
-
React ⚛️
-
API Key: Replace
.envkey 🔑 with yours. -
Styling: Tweak Tailwind classes for a fresh look! 💅
-
🌐 Multi-language support for weather descriptions.
-
📅 Hourly/weekly forecasts.
-
📍 Geolocation-based auto-detect.
-
💾 Offline caching for frequent searches.
MIT Licensed — go wild! 🎉
PRs welcome! Fork, tweak, and submit! 🛠️
Reach out: Superjane.prodev@gmail.com 📬
Happy coding! 👨💻👩💻
May your weather always be sunny! ☀️✨



