A beautiful, bilingual (Arabic/English) weather application built with React, Vite, and Tailwind CSS. This application provides real-time weather updates with a modern, glassmorphism-inspired user interface.
- 🌍 Bilingual Support: Seamless switching between Arabic and English.
- ⚡ Real-time Data: Fetches live weather data using the OpenWeatherMap API.
- 🎨 Modern UI: Glassmorphism design with dynamic animations and responsive layout.
- 📱 Responsive: Optimized for all device sizes.
- 🌓 RTL/LTR Support: Full support for Right-to-Left (Arabic) and Left-to-Right (English) layouts.
- Framework: React + Vite
- Styling: Tailwind CSS
- Icons: Lucide React
- Internationalization: i18next
- HTTP Client: Axios
Before you begin, ensure you have the following installed:
- Node.js (v16 or higher)
- npm or yarn
You will also need an API key from OpenWeatherMap.
-
Clone the repository
git clone https://github.com/MoAjabali/react-simple-weatherapp.git cd react-simple-weatherapp -
Install dependencies
npm install
-
Configure Environment Variables Create a
.envfile in the root directory and add your OpenWeatherMap configuration:VITE_OPEN_WEATHER_API_KEY=your_api_key_here VITE_OPEN_WEATHER_LATITUDE=your_latitude VITE_OPEN_WEATHER_LONGITUDE=your_longitude
Start the development server
npm run devThe application will be available at http://localhost:5173.
Build for production
npm run buildPreview production build
npm run previewsrc/
├── components/ # UI components (Skeleton, etc.)
├── locales/ # Translation files
├── App.jsx # Main application component
├── WeatherCard.jsx # Core weather display component
└── main.jsx # Entry point
This project is licensed under the MIT License.