This is a simple weather app you are able to check information of weather of your city, see the current temperature, wind speed, umidity and precipation of rain.
You are able to share the location through browser permission or set the location with the change city button.
Also a Next.js project bootstrapped with create-next-app.
Weather info is powered by Open Meteo a free open source weather API City names searched by latitude and longitude is powered by GeoApify API with free tier plan City search engine is powered by Geonames free API In order to use IP based location it was used IP Geolocation API on free Tier
- Clone the repo and install the dependencies:
npm install- Create a .env file with this entries:
NEXT_PUBLIC_GEONAMES_USERNAME=your_geonames_username
NEXT_PUBLIC_GEOAPIFY_APIKEY=yourgeoapify_apikey
NEXT_PUBLIC_IPGEOLOCATION_APIKEY=your_geolocation_apikey- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
A demo page is deployed at vercel in WeatherApp