Skip to content

cgobbo8/smappen-weather-app

Repository files navigation

smappen-weather-app

Weather app using openweather, openstreetmap, leaflet and pelias.smappen.com APIs

To configure the project, please add your openweather API KEY in the .env or .env.local file.

Note :

Note :

I didn’t have access to the paid part of the OpenWeather API, so I couldn’t retrieve the forecast for the coming days.

Therefore, the dedicated block in the application uses a calculation to determine the minimum and maximum temperatures for each day via the endpoint: https://api.openweathermap.org/data/2.5/forecast.

Calculation method: useCityStore:forecastDaysWithIconListReducerCb

Screenshot of the app (Dynamic wallpaper)

Sunny weather

Sunny weather

Cloudy Weather

Cloudy weather

Rainy Weather (with lighting animation)

Rainy Weather

Snow Weather

Rainy Weather

Clear Night Weather

Clear Night Weather

Cloudy Night Weather

Cloudy Night Weather

Rainy Night Weather

Cloudy Night Weather

Snow Weather at night

Rainy Weather

Config

Recommended IDE Setup

VSCode + Volar (and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

pnpm install

Compile and Hot-Reload for Development

pnpm dev

Type-Check, Compile and Minify for Production

pnpm build

Run Unit Tests with Vitest

pnpm test:unit

Lint with ESLint

pnpm lint