This is a weather website project that provides real-time weather information for a specific location. It uses Node.js, Express.js for the backend, and HTML, CSS, and JavaScript for the frontend.
- Weather Data: Users can enter a city name and click "Search" to get the current weather details.
- Uses OpenWeatherMap API to fetch weather data.
- Provides a responsive design for different devices.
- Dynamic Icons: Icons change based on the weather status (e.g., sunny, cloudy, rainy).
Check out the live demo : https://weather-web-o7iw.onrender.com
-
Clone the repository:
git clone https://github.com/RiyaRaj28/Weather-Website.git
-
Install dependencies:
npm install
-
Set up environment variables:Create a .env file in the root directory and add the following:
PORT=8000 API_KEY=your_openweathermap_api_key
-
Run the server:
npm start
-
Access the website: Open your browser and navigate to http://localhost:3000. Emter city name to check the weather.
Displays weather information for a particular location.
- Node.js: Server-side JavaScript runtime environment.
- Express.js: Web application framework for Node.js.
- HTML: Standard markup language for creating web pages.
- CSS: Style sheet language used for describing the presentation of a document written in HTML.
- JavaScript: Programming language that enables interactive web pages.
- OpenWeatherMap: For providing the weather data API.
- Font Awesome: For the weather icons.