A simple weather application built using React and Vite with SWC. This app fetches weather data from an external API and displays it in a user-friendly interface.
- Displays current weather data for a specified location.
- Shows weather forecasts for the upcoming days.
- Responsive design for mobile and desktop.
- React: A JavaScript library for building user interfaces.
- Vite: A fast build tool and development server.
- SWC: A super-fast TypeScript / JavaScript compiler.
- Axios: A promise-based HTTP client for making API requests.
- Node.js and npm installed on your machine.
-
Clone the repository:
git clone https://github.com/lokmanzeddoun/weather-app cd weather-app
-
Install Dependencies:
npm install
-
Running the App Locally
npm run dev
VITE_WEATHER_API_KEY=your_openweather_api_key
VITE_CITY_API_KEY=your_fetch_city_api_key_from_rapid_api