A full-stack weather search app built with React, Express.js, and the OpenWeather API.
-
City Search Autocomplete:
Fetches and displays city suggestions as you type using the GeoDB Cities API. -
Weather Data Display:
Retrieves and shows real-time weather data from the OpenWeatherMap API. -
Debounced API Requests:
Automatically debounces input to reduce unnecessary API calls. -
Responsive & Modern UI:
A clean, mobile-friendly interface powered by Tailwind CSS.
Category | Technologies |
---|---|
Frontend | React.js, Tailwind CSS, Vite |
Backend | Express.js, Node.js |
APIs | OpenWeatherMap API, GeoDB Cities API |
git clone https://github.com/your-username/weather-app.git
cd weather-app
cd client
npm install
cd ../server
npm install
Create a .env
file in the server
directory with your API keys:
# server/.env
OPENWEATHER_API_KEY=your_openweather_api_key
GEODB_API_KEY=your_geodb_api_key
cd server
node index.js
By default, the backend server listens at:
http://localhost:5000
cd client
npm start
The frontend runs at:
http://localhost:5173
This project is licensed under the MIT License.
- Weather Data: OpenWeatherMap
- City Suggestions: GeoDB Cities API