- method 1: Enter a valid city name, press enter.
- method 2: Allow location access in browser, click on
Get Devide Locaion
.
Prerequisites
- Node.js 17.0 +
- Api key of
openweather
git clone https://github.com/builtbysuraj/weather-app.git
cd weather-app
npm i
Create a .env
file in the root of the folder and put your API key with the name VITE_API_KEY
(e.g. below)
VITE_API_KEY=1a2b3c4d5e
npm run dev