Hello everyone ! In this project I deployed a weather app to search about weather condition using Node.js.
Features:
1. Location Search: Users can enter a city name or ZIP code to search for weather information.
2. Real-time Weather: The app shows the real-time temperature and weather description(like Sunny, Rainy, hazed, etc.).
Technologies used:
APIs Used:
1. Weatherstack: - We used weatherstack API to fetch real-time weather data.
2. Mapbox: - We used Mapbox API to fetch the latitude and longitude of the location i.e. geocoding, which we used as an input for our app to locate the place (reverse geocoding) as well as show weather conditions for the same.
src files:
1. utils/geocode.js: - In this file, we fetch the coordinates of the location (Latitude and Longitude) using Mapbox API using geocoding. We used if-else statements for wrong input (i.e. Location).
2. utils/forecast.js: - In this file, we fetch the weather condition in which the input is the coordinates which we fetch through geocoding using Weatherstack API.
3. app.js:- It is our main file where we integrate the outputs of geocode and forecast files and display them to the users.
Submitted by Aishwary Damor (Aishwary)
Download packets of source code on Coders Packet
Comments