-
Run
yarn
This installs depedencies
-
Create an
.env
file and add the following values
NEXT_PUBLIC_BASE_URL=https://api.openweathermap.org
NEXT_PUBLIC_API_KEY=1093445eb7b9362f8d97474f6fbc969c
-
Run
yarn dev
This will startt the app
-
Open
http://localhost:3000/
on your browser. Ensure you are not running an app on this port.
-
When asked to allow app to use your location, click
Allow
button. This allows the app to pick your longitude and latitude cordinates and display the weather information. -
You can also type in a country, city or state name into the large search bar. Details of the location will be fetched.
-
You might as well type in a static latitude and longitude values in the menu section. After which you should click search.
-
The unit dropdown select is also visible on the menu bar. This changes the -
-
temperature unit to either
Celcius
,Fahrenheit
orKelvin
-
wind speed unit to either
meter/sec
,meter/sec,
ormiles/hour
-
-
The background changes based on the weather status.