This weather widget app show you the weather in different cities depending on the city you input. It is built using NextJS, Typescript and TailwindCSS and relies on the https://openweathermap.org/ API for data fetching.
The city defaults to Copenhagen and also runs on browsers with JavaScript disabled.
To run this project
- Clone this project
- Run
npm -i
to install all relevant packages - Add a
.env
file to your project and addWEATHER_API_KEY=[your_apiKey]
to the file - Make sure you are running a recent version of Node >20.0.0
- Run
npm run dev
to run the project on your local machine - Go to
http://localhost:3000
in your browser to interact with the project