| π Overview | β‘ Features | π― Demo | π οΈ Installation |
|---|---|---|---|
| π Usage | π API Integration | π§° Technologies | π Deployment |
Nexus Weather is a modern React app delivering real-time weather, air quality, and 5-day forecasts with a beautiful, responsive interface. Powered by OpenWeatherMap, it features dynamic theming, glassmorphism UI, and blazing-fast performance with Vite.
- π¨ Dynamic Weather Theming: UI adapts to current weather
- π Comprehensive Data: Current, forecast, and air quality
- π Smart Search: Cities, zip codes, coordinates, landmarks
- π Glassmorphism UI: Modern, animated, and responsive
- π± Mobile First: Touch-friendly and fully responsive
|
|
|
|
| Requirement | Version | Status |
|---|---|---|
| π’ Node.js | v16.0+ | Required |
| π¦ npm | Latest | Required |
| π Browser | Modern | Required |
| π API Key | OpenWeather | Required |
git clone https://github.com/yourusername/nexus-weather.git
cd nexus-weather
npm install-
Configure API Key
Create a.env.localfile in the root:VITE_OPENWEATHER_API_KEY=your_api_key_here
-
Start Development Server
npm run dev
-
Open in Browser
Visit http://localhost:5173
- API key is required in
.env.localasVITE_OPENWEATHER_API_KEY - See vite.config.js for dev/prod settings
- Default Weather: Loads New York on start
- Search: Enter any city, zip, or coordinates
- Recent Searches: Dropdown history (coming soon)
- Unit Toggle: (planned)
- Current Location: (planned)
- Current Weather: OpenWeatherMap
- 5-Day Forecast: OpenWeatherMap
- Air Quality: OpenWeatherMap (future)
- Geocoding: OpenWeatherMap (future)
Handles:
- Network/API errors
- Invalid locations
- Rate limits
React_Nexus/
βββ public/
β βββ vite.svg
βββ src/
β βββ [App.jsx](src/App.jsx) # Main app component
β βββ [main.jsx](src/main.jsx) # React entry point
β βββ [index.css](src/index.css) # Global styles
β βββ App.css
β βββ assets/
β βββ react.svg
βββ [.env.local](.env.local) # API key
βββ [vite.config.js](vite.config.js)
βββ [package.json](package.json)
βββ [README.md](README.md)
| Tech | Description |
|---|---|
| React | UI library |
| Vite | Build tool |
| Tailwind CSS | Utility-first CSS |
| Lucide React | Icon library |
| OpenWeatherMap | Weather API |
| ESLint | Linting |
| PostCSS | CSS tooling |
| Command | Purpose |
|---|---|
npm run dev |
Start dev server |
npm run build |
Production build |
npm run preview |
Preview build locally |
npm run lint |
Lint code |
npm run deploy |
Deploy to GitHub Pages |
- Vercel:
vercel --prod - Netlify: Deploy
dist/afternpm run build - GitHub Pages:
npm run build npm run deploy
See vite.config.js for base path config.
- Chrome, Firefox, Safari, Edge (last 2 versions)
|
Weather Data API |
Beautiful Icons |
Amazing Framework |
Lightning Fast Build |
