A modern weather application that provides real-time weather data and machine learning-based predictions for temperature and precipitation.
- 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
- Create a Python virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate- Install Python dependencies:
pip install -r requirements.txt-
Sign up for a free API key at OpenWeatherMap
-
Create a
.envfile in the backend directory:
OPENWEATHERMAP_API_KEY=your_api_key_here- Install Node.js dependencies:
cd frontend
npm install- Start the development server:
npm run dev- Start the backend server:
cd backend
uvicorn main:app --reload- Start the frontend development server:
cd frontend
npm run dev- Access the application at
http://localhost:3000
weather-app/
├── backend/
│ ├── app/
│ │ ├── models/
│ │ ├── routers/
│ │ └── services/
│ ├── ml_models/
│ └── main.py
├── frontend/
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ └── services/
│ └── package.json
└── requirements.txt