Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Prediction App

A modern weather application that provides real-time weather data and machine learning-based predictions for temperature and precipitation.

Features

  • Real-time weather data using OpenWeatherMap API
  • Machine learning predictions for temperature highs/lows
  • Precipitation probability forecasting
  • Beautiful, responsive UI built with React and TailwindCSS
  • FastAPI backend with ML model integration

Setup Instructions

Backend Setup

  1. Create a Python virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: .\venv\Scripts\activate
  1. Install Python dependencies:
pip install -r requirements.txt
  1. Sign up for a free API key at OpenWeatherMap

  2. Create a .env file in the backend directory:

OPENWEATHERMAP_API_KEY=your_api_key_here

Frontend Setup

  1. Install Node.js dependencies:
cd frontend
npm install
  1. Start the development server:
npm run dev

Running the Application

  1. Start the backend server:
cd backend
uvicorn main:app --reload
  1. Start the frontend development server:
cd frontend
npm run dev
  1. Access the application at http://localhost:3000

Project Structure

weather-app/
├── backend/
│   ├── app/
│   │   ├── models/
│   │   ├── routers/
│   │   └── services/
│   ├── ml_models/
│   └── main.py
├── frontend/
│   ├── src/
│   │   ├── components/
│   │   ├── pages/
│   │   └── services/
│   └── package.json
└── requirements.txt

About

Using ML and real-time data, an interactive weather app can be deployed.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages