Skip to content

lisboa-daniel/weatherapp

Repository files navigation

Simple Weather App

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

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

Guide to run this

  1. Clone the repo and install the dependencies:
npm install
  1. 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
  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Demo

A demo page is deployed at vercel in WeatherApp

About

A simple weather forecast app made with nodejs and react

Topics

Resources

Stars

Watchers

Forks