Live Demo: Real Weather App
This NodeJS Weather Web App is a simple web application that allows users to check the current weather conditions for a specific location. It utilizes the WeatherAPI to retrieve real-time weather data.
Follow these steps to install and run the NodeJS Weather Web App:
-
Clone the Repository:
gh repo clone Iamaniketgupta/RealWeatherApp cd RealWeatherApp
-
Install Dependencies:
npm install
-
Create Environment Variables:
-
Create a new file named
.env
in the project root. -
Add the following lines to the
.env
file, replacingYOUR_API_KEY
with your actual Weather API key:PORT=8000 API_KEY=YOUR_API_KEY API_URL=https://api.weatherapi.com/v1/forecast.json S_URL=https://api.weatherapi.com/v1/search.json
-
After running the application, open your web browser and navigate to http://localhost:8000 to access the NodeJS Weather Web App. You will be able to enter the city name and view the current weather conditions.
Feel free to explore and modify the application according to your needs. You can enhance it by adding more features or integrating additional APIs.
This NodeJS Weather Web App is licensed under the MIT License. Feel free to use, modify, and distribute it as per the license terms.
- Aniket Gupta
- GitHub: @iamaniketgupta