A simple weather web application that allows users to search for the weather of any city or detect their current location to fetch real-time weather data with a modern UI. The app provides temperature, humidity, rain chances, and other weather conditions using an external API.


- π Search by City β Enter a city name to get live weather updates.
- π Detect Location β Automatically fetch weather data for your current location.
- π¨ Responsive UI β Built with modern design and mobile-friendly experience.
- π Weather Details β Includes temperature, rain probability, humidity, and more.
- Frontend: EJS
- Backend: Express + Node.js
- In Memory Database: Redis (for caching real-time data)
- API: Rapid API
- Clone the repository:
git clone https://github.com/sunjay-dev/Weather-website cd Weather-website
- Install dependencies:
npm install
- Set up your .env file with your API key:
REDIS_HOST= REDIS_HOST REDIS_PASSWORD=REDIS_PASSWORD REDIS_PORT=REDIS_PORT RAPID_API_KEY=RAPID_API_KEY PORT=3000
- Start the application:
npm start
- Type a city name and click Search to get weather details.
- Click the Refresh button to update the weather data.
- Use the Location button to fetch your current location's weather.
This project is open-source and available under the MIT License.
Feel free to contribute or raise an issue if you find any bugs! π