Skip to content

Sun Syncs: A sleek and modern Single Page Application (SPA) weather app built using React + Vite. Get real-time weather information for any city around the globe in an instant!

Notifications You must be signed in to change notification settings

TBS96/weather-app-react

Repository files navigation

🌦️ Sun Syncs (SPA)

A sleek and modern Single Page Application (SPA) weather app built using React + Vite, TanStack Query, Context API, TailwindCSS, and daisyUI. Get real-time weather information for any city around the globe in an instant!


✨ Features

  • πŸ”₯ Instant weather search by city name
  • 🌎 Uses the browser's Geolocation API to get coordinates on page load.
  • ⚑ Global weather data (temperature, humidity, weather condition)
  • πŸŒ“ Light/Dark mode support
  • πŸ› οΈ Powered by Context API for state management
  • πŸ“± Fully responsive and mobile-friendly
  • 🎨 Beautiful UI with TailwindCSS and daisyUI

πŸ› οΈ Tech Stack

Tech Description
React + Vite Frontend framework & build tool
TanStack Query For making API calls to weather services
Context API Global state management
Geolocation API Get coordinates
TailwindCSS Utility-first CSS framework
daisyUI Tailwind Components Library

πŸš€ Installation

1. Clone the Repository

git clone https://github.com/tbs96/weather-app-react.git
cd weather-app

2. Install Dependencies

npm install

3. Get an API Key

  • Sign up at OpenWeatherMap (or any weather API you prefer).
  • Create a .env file in the root of the project and add your API key:
VITE_WEATHER_API_KEY=<YOUR_API_KEY>

4. Start the Development Server

npm run dev

Your app will be running at http://localhost:5173 πŸŽ‰


πŸ“‹ Available Scripts

  • npm run dev -- --host – Start development server
  • npm run build – Build app for production
  • npm run preview – Preview production build locally

πŸ™ Acknowledgements


πŸ“ž Contact Me

Email

LinkedIn

Facebook


🀝 Contributing

Contributions, issues, and feature requests are welcome!
Feel free to open a pull request.

About

Sun Syncs: A sleek and modern Single Page Application (SPA) weather app built using React + Vite. Get real-time weather information for any city around the globe in an instant!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published
close