A small, friendly weather application built with Next.js and TypeScript. The app displays current weather information and provides simple, practical clothing and activity advice in a warm, casual tone — perfect for families and children. The web app is primarily aimed at children and adolescents with disabilities such as intellectual disabilities, autism, and others who have difficulty choosing clothes according to the weather.
- Search weather for any location
- Current weather information: temperature, feels-like temperature, humidity, wind, and weather description
- "Mom says...": short, useful clothing tips based on weather conditions
- Forecasts for upcoming hours
- Simple error handling for invalid locations
- Next.js (App Router)
- TypeScript
- React
- Simple CSS (located in
src/app/globals.css)
- Clone the repository
git clone https://github.com/<your-username>/mammasvader.git
cd mammasvader- Install dependencies
npm install
# or: pnpm install, yarn- Create a
.env.localfile in the project root with your API keys (example below)
NEXT_PUBLIC_WEATHER_API_KEY=your_api_key
NEXT_PUBLIC_WEATHER_BASE_URL=https://api.openweathermap.org
- Start the development server
npm run devOpen http://localhost:3000 in your web browser.
src/app/— Next.js app directory (pages and layout)src/components/— UI components (Header, Footer, WeatherCard, Forecast, SearchInput)src/hooks/useWeather.ts— Hook for weather logicpublic/— static files (images, screenshot)
NEXT_PUBLIC_WEATHER_API_KEY— API key for weather serviceNEXT_PUBLIC_WEATHER_BASE_URL— (optional) base URL for the weather service
