An open API service indexing awesome lists of open source software.

https://github.com/sougata-github/weather-app

A weather dashboard built using React.js
https://github.com/sougata-github/weather-app

Last synced: 11 months ago
JSON representation

A weather dashboard built using React.js

Awesome Lists containing this project

README

          

# A Real-Time Weather Dashboard Powered by OpenWeatherMap API

![png](https://github.com/user-attachments/assets/e86cda0d-3f93-4833-8c3a-2c26d58cb4ac)

## Key Features

- Real-time weather data
- Persisted searched city
- 5-day weather forecast
- Caching and revalidation (polling)
- Clean code and best practices
- Organised file and folder structure
- Fully responsive
- Beautifully designed loading state
- Error states as fallback

## Tech Stack

- **React.js** + **Vite**
- **CSS Modules**
- **TypeScript**
- **OpenWeatherMap API**
- **React Query**
- **Lucide React**
- **Vercel**
- **Git**
- **GitHub**

## Getting Started

1. Clone the repo
```bash
git clone https://github.com/sougata-github/weather-app.git
cd weather-app
```
2. Create a .env file in the root of your project and add the following environment variable:
```bash
VITE_WEATHER_API_KEY=your_api_key
```
3. Install dependencies
```bash
npm install
```
4. Run the project locally
```bash
npm run dev
```