This is a weather mini project built using React and created with Vite. It allows users to search for weather information of different locations.
- Search for weather information of any location
- Display current weather conditions including temperature, humidity, wind speed, and description
- Show a 5-day forecast with daily weather conditions and temperatures
- Automatically detect and display the user's current location weather information
- Responsive design for a seamless experience across different devices
- Clone the repository:
git clone https://github.com/Cladux/Weather-App
- Navigate to the project directory:
cd Weather-app
- Install dependencies:
npm install
-
Obtain an API key from OpenWeatherMap by signing up at https://home.openweathermap.org/users/sign_up.
-
Create a .env file in the project root directory.
-
Add the following line to the .env file, replacing YOUR_API_KEY with your actual API key:
VITE_REACT_API_KEY=YOUR_API_KEY
- Start the development server:
npm run dev
- Open your browser and visit [http://localhost:3000] to view the application.
To build the application for production, run the following command:
npm run build
This will generate an optimized and minified version of the application in the dist directory. You can then deploy the contents of this directory to your preferred hosting platform.
This project was created by [Cladux]. It uses the following technologies and libraries:
- React: (https://reactjs.org/)
- Vite: (https://vitejs.dev/)
- Tailwind: (https://tailwindcss.com/)
- OpenWeatherMap API: (https://openweathermap.org/api)