Skip to content

dshoen619/Weather_Site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

A modern weather application built with React and TypeScript that provides real-time weather information and activity suggestions based on current weather conditions.

Features

  • 🌍 Search for any city worldwide
  • 🌤️ Real-time weather data including:
    • Temperature (current, feels like, min/max)
    • Weather description
    • Humidity
    • Wind speed
  • 🎯 Dynamic background images based on weather conditions
  • 💡 AI-powered activity suggestions based on current weather
  • 🔄 Loading states with visual feedback
  • 📱 Responsive design for all devices

Screenshots

Weather App Interface

Tech Stack

  • React
  • TypeScript
  • OpenWeatherMap API
  • Custom Node.js server for activity suggestions

Setup

  1. Clone the repository:
git clone https://github.com/dshoen619/Weather_Site.git
  1. Install dependencies:
npm install
# or
yarn install
  1. Start the Client side:
cd weather-app
npm start
  1. Enter the OpenAI Key: Go to functions.js. Enter the API Key on line 4.

  2. Start the activity suggestion server (in a separate terminal):

cd server
npm install
npm run dev

The Client will be available at http://localhost:3000 and the server will be running at http://localhost:3001

Project Structure

Weather_Site/
├── weather-app/           # React client application
│   ├── src/
│   │   ├── api.ts              # API configuration and functions
│   │   ├── App.tsx            # Main application component
│   │   ├── App.css            # Main styles
│   │   ├── types/
│   │   │   └── interfaces.ts  # TypeScript interfaces
│   │   ├── json/
│   │   │   ├── city_country_list.json  # City data
│   │   │   └── descriptions.json       # Weather descriptions mapping
│   │   └── photos/            # Weather background images
│   ├── public/
│   └── package.json
│
├── server/                # Node.js server for activity suggestions
│   ├── src/
│   │   └── server.js     # Server implementation
│   └── package.json
│
└── json/                 # Shared JSON data and processing
    ├── city_country_list.json  # Master city data file
    └── main.py           # Python script for processing city data that will be used for the user search

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors