👉 weather-app-phi-nine-51.vercel.app
This project is a weather application built with ReactJs and NextJs. It demonstrates modern React patterns, API integration, and UI component design.
🌤️ Current Weather Summary
- Shows date, icon, temperature, description, humidity, wind speed (with direction), and visibility.
📅 5-day Forecast (3-hour Intervals)
- Displays forecast with time, icon, max/min temps, and description. Groups data by day using OpenWeather API.
🔍 Search & History
- Search for city weather
- Handle valid/invalid input
- Save & display past searches
- Reuse or delete search history
- ReactJs
- NextJs
- TypeScript
- Tailwind CSS (if used)
- ESLint & Prettier for code quality
-
Install dependencies:
pnpm install
-
Set up environment variables:
- Create
.env
and fill in required API keys. - Example:
OPEN_WEATHER_API_KEY=89cd93312734c3864d3a0cbd89f83868
- Create
-
Run the development server:
pnpm dev
The app will be available at http://localhost:3000.
apps/weather-app/
app/ # NextJs app directory
components/ # Reusable UI components
hooks/ # Custom React hooks
lib/ # Init by "shadcn/ui"
services/ # API service logic
utils/ # Helper utilities
pnpm dev
– Start development serverpnpm build
– Build for productionpnpm lint
– Run linter
- Please review code comments for explanations of key decisions.
- For any questions, contact [email protected].
Good luck reviewing!