A beautiful, responsive weather application built with React and Vite that provides real-time weather information for any location worldwide.
- 🌍 Global Weather Data - Get weather information for any city worldwide
- 📱 Responsive Design - Works perfectly on desktop, tablet, and mobile
- 🎨 Beautiful UI - Modern gradient backgrounds with particle animations
- ⚡ Fast Performance - Built with Vite for lightning-fast loading
- 🔒 Secure - Environment-based API key management
- 🎯 Location Search - Easy city/location search functionality
- Frontend: React 18
- Styling: CSS3
- Build Tool: Vite
- API: WeatherAPI.com
- Deployment: Render
Before you begin, ensure you have the following installed:
- Node.js (version 16.0 or higher)
- npm (comes with Node.js)
- A free API key from WeatherAPI.com
-
Fork this repository
- Click the "Fork" button at the top right of this repository
- This creates a copy in your GitHub account
-
Clone your forked repository
git clone https://github.com/YOUR_USERNAME/Wetter-WeatherApp.git cd wetter-weather-app -
Install dependencies
npm install
-
Get your API key
- Visit WeatherAPI.com
- Create a free account
- Copy your API key from the dashboard
-
Set up environment variables
# Create .env file in the root directory touch .env # Add your API key (replace with your actual key) echo "VITE_WEATHER_API_KEY=your_api_key_here" > .env
-
Start the development server
npm run dev
-
Open your browser
- Navigate to
http://localhost:3000 - Your weather app should be running! 🎉
- Navigate to
Create a .env file in your project root:
VITE_WEATHER_API_KEY=your_actual_api_key_here.env file to GitHub! It's already included in .gitignore.
- Environment Variables: API keys stored securely
- Input Validation: All user inputs are validated
- XSS Protection: React's built-in XSS prevention
- HTTPS: Secure API calls only
- No Data Storage: No sensitive user data stored
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch
git checkout -b feature/amazing-feature
- Make your changes
- Commit your changes
git commit -m 'Add some amazing feature' - Push to the branch
git push origin feature/amazing-feature
- Open a Pull Request
wetter-weather-app/
├── public/ # Static assets
├── src/
│ ├── components/ # React components
│ ├── pages/ # Page components
│ ├── App.jsx # Main App component
│ ├── main.jsx # Entry point
│ ├── App.css # App styles
│ └── index.css # Global styles
├── .env.example # Environment variables template
├── .gitignore # Git ignore file
├── package.json # Dependencies and scripts
├── vite.config.js # Vite configuration
├── LICENSE # MIT License
└── README.md # You are here!
This project is open source and available under the MIT License.
- WeatherAPI.com for providing weather data
- React for the amazing framework
- Vite for the blazing fast build tool
If you have any questions or run into issues:
- Check the Issues page
- Create a new issue if your problem isn't listed
- Provide detailed information about your setup and the error
⭐ If you found this project helpful, please give it a star!
Happy coding! 🌟