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
- Add tests
- Improve accessibility