tiberiualex / weather-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather app

Weather app using the OpenWeather API. To run the app, get an API key from OpenWeather, then create a .env.local file with the API key:

OPENWEATHER_API_KEY=YOUR_KEY_HERE

Then run the app:

npm run dev
# or
yarn dev

Then open http://localhost:3000

For a production build:

npm run build
# or
yarn build

The app is based on a Sitepoint tutorial, but it has some changes over the original:

  • Added TypeScript
  • Added SWR for making requests
  • Added server rendered defaults
  • Refactored a few of the components

Todo

  • Add tests
  • Improve accessibility

About


Languages

Language:TypeScript 82.5%Language:CSS 17.0%Language:JavaScript 0.5%