This is a Next.js project bootstrapped with create-next-app.
npm install
# or
yarn install- Sign up at OpenWeatherMap and copy the free API key
- Create a
.env.localfile in the root of the project - Add your API key to the
NEXT_PUBLIC_OPENWEATHER_MAPS_API_KEYvariable
Example:
NEXT_PUBLIC_OPENWEATHER_MAPS_API_KEY=f2i32io902ff23r32r32To run the development server locally:
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.