Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 801 Bytes

README.md

File metadata and controls

36 lines (30 loc) · 801 Bytes

Weather App using React.js

image

How to use it?

  • method 1: Enter a valid city name, press enter.
  • method 2: Allow location access in browser, click on Get Devide Locaion.
Prerequisites
  1. Node.js 17.0 +
  2. Api key of openweather

Clone this repo

git clone https://github.com/builtbysuraj/weather-app.git

Move to that folder

cd weather-app

Install dependencies

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

Start the development server

npm run dev

Congratulation 🎉🎉